joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4940ab
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, ecx
or ebx, 0xffffffff
mov cl, byte [esi + edx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x4940d9
movsx eax, cl
sub eax, 0x41
jmp 0x494111
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4940e8
movsx eax, cl
sub eax, 0x47
jmp 0x494111
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4940f7
movsx eax, cl
add eax, 4
jmp 0x494111
cmp cl, 0x2b
jne 0x494100
push 0x3e
jmp 0x494107
cmp cl, 0x2f
jne 0x49410a
push 0x3f
pop eax
jmp 0x494111
cmp cl, 0x3d
jne 0x49417b
mov eax, ebx
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x4940c7
mov edx, dword [ebp - 0x14]
cmp edx, ebx
je 0x49417b
cmp dword [ebp - 0x10], ebx
je 0x49417b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, ebx
jne 0x49413a
cmp eax, ebx
jne 0x49417b
xor ebx, ebx
inc ebx
jmp 0x494145
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, dword [ebp - 0x10]
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jle 0x49416f
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jle 0x494177
mov byte [edi + 2], dl
mov eax, ebx
jmp 0x49417d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x494ce2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x48]
push 5
pop ecx
mov esi, str.PuTTY_User_Key_File_
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
push 0x4f1cdc
movsb byte es:[edi], byte [esi]
mov esi, str._____BEGIN_SSH2_ENCRYPTED_PRIVAT
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push eax
movsb byte es:[edi], byte [esi]
mov esi, str._____BEGIN
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x494dc0
push edi
push 0x20
lea eax, [ebp - 0x30]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
cmp esi, 0x20
jae 0x494d5a
xor eax, eax
inc eax
jmp 0x494dc0
mov esi, dword [sym.imp.msvcrt.dll_memcmp]
lea eax, [ebp - 0x30]
push 0x20
push str.SSH_PRIVATE_KEY_FILE_FORMAT_1.1_n
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x494d79
push 2
pop eax
jmp 0x494dc0
push 0x14
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x494d90
push 3
jmp 0x494d76
push 0xb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x494da7
push 4
jmp 0x494d76
push 0x20
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4966cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
mov edx, ecx
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], ecx
test edi, edi
jle 0x496780
push esi
cmp edi, dword [edx + 0xc]
mov eax, edi
mov byte [ebp - 0x29], cl
cmovg eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x2b], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x2a], al
call dword [edx]
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x3c]
push esi
call dword [eax + 4]
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push esi
call dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
add esp, 0x20
mov edx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x30], ecx
test edx, edx
jle 0x496770
lea esi, [ebp - 0x24]
mov ecx, ebx
sub esi, ebx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
dec edx
jne 0x496761
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
sub edi, edx
add ebx, edx
mov edx, dword [ebp - 0x28]
test edi, edi
jg 0x4966f9
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x496920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x144]
push 0x10
pop ecx
mov esi, edx
mov dword [ebp - 0x15c], ebx
rep movsd dword es:[edi], dword [esi]
push 0x40
lea edx, [ebp - 0x13c]
pop ecx
mov eax, dword [edx + 0x2c]
xor eax, dword [edx + 0x18]
xor eax, dword [edx - 8]
xor eax, dword [edx]
lea edx, [edx + 4]
rol eax, 1
mov dword [edx + 0x34], eax
dec ecx
jne 0x496954
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ebx, edx
and dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x154], 0x14
mov edx, eax
mov ecx, edi
not ecx
rol edx, 5
and ecx, ebx
mov eax, esi
and eax, edi
or ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
mov dword [ebp - 0x148], ebx
mov ecx, dword [ebp - 0x150]
add eax, 0x5a827999
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x14c]
ror esi, 2
add edx, dword [ebp + ecx*4 - 0x144]
add eax, edx
inc ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
cmp ecx, 0x14
jl 0x496997
mov dword [ebp - 0x158], ebx
mov edx, ebx
mov dword [ebp - 0x150], 0x28
mov ecx, eax
mov eax, edx
xor eax, esi
rol ecx, 5
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 0x154]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add eax, 0x6ed9eba1
mov dword [ebp - 0x148], edx
add eax, ecx
mov edx, esi
mov ecx, dword [ebp - 0x154]
mov esi, edi
mov edi, dword [ebp - 0x14c]
ror esi, 2
inc ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], ecx
cmp ecx, 0x28
jl 0x4969fb
mov dword [ebp - 0x158], edx
mov ebx, edx
mov dword [ebp - 0x154], 0x3c
mov edx, eax
mov ecx, esi
or ecx, edi
rol edx, 5
add edx, dword [ebp - 0x148]
and ecx, ebx
mov eax, esi
mov dword [ebp - 0x148], ebx
and eax, edi
mov ebx, esi
or ecx, eax
mov esi, edi
mov eax, dword [ebp - 0x150]
mov edi, dword [ebp - 0x14c]
ror esi, 2
add ecx, dword [ebp + eax*4 - 0x144]
lea eax, [ecx - 0x70e44324]
mov ecx, dword [ebp - 0x150]
add eax, edx
inc ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
cmp ecx, 0x3c
jl 0x496a5f
mov dword [ebp - 0x158], ebx
mov edx, ebx
mov ebx, dword [ebp - 0x154]
mov ecx, eax
rol ecx, 5
mov eax, edx
xor eax, esi
add ecx, 0xca62c1d6
add ecx, dword [ebp - 0x148]
xor eax, edi
add eax, dword [ebp + ebx*4 - 0x144]
add eax, ecx
mov dword [ebp - 0x148], edx
mov edx, esi
mov dword [ebp - 0x150], eax
mov esi, edi
mov ecx, ebx
mov edi, dword [ebp - 0x14c]
mov ebx, dword [ebp - 0x15c]
ror esi, 2
inc ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], ecx
cmp ecx, 0x50
jl 0x496abe
add dword [ebx + 4], edi
add dword [ebx], eax
add dword [ebx + 8], esi
mov ecx, dword [ebp - 4]
add dword [ebx + 0xc], edx
xor ecx, ebp
mov eax, dword [ebp - 0x148]
add dword [ebx + 0x10], eax
pop edi
pop esi
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x496b3c
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 0x58], eax
ret

Function at 0x496d80
Capabilities:
Hash data using sha1

Disassembly:
push esi
push 0x60
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x496d9f
push 0x60
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x496da1
xor esi, esi
mov dword [esi], 0x67452301
mov eax, esi
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
and dword [esi + 0x54], 0
and dword [esi + 0x5c], 0
and dword [esi + 0x58], 0
pop esi
ret

Function at 0x496e1e
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
mov esi, ecx
push 0x36
push eax
mov edi, edx
mov dword [ebp - 0x48], esi
call dword [sym.imp.msvcrt.dll_memset]
mov ebx, dword [ebp + 8]
add esp, 0xc
xor edx, edx
test ebx, ebx
jle 0x496e70
mov esi, edi
lea eax, [ebp - 0x44]
sub esi, eax
cmp edx, 0x40
jge 0x496e6d
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc edx
cmp edx, ebx
jl 0x496e59
mov esi, dword [ebp - 0x48]
mov ecx, esi
call fcn.00496b3c
push 0x40
lea edx, [ebp - 0x44]
call fcn.00496b6a
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0x10
xor edx, edx
test ebx, ebx
jle 0x496eb1
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x496eb1
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, ebx
jl 0x496e9d
lea ecx, [esi + 0x60]
call fcn.00496b3c
push 0x40
lea edx, [ebp - 0x44]
call fcn.00496b6a
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call dword [sym.imp.msvcrt.dll_memset]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4a0763
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 8
call esi
mov ecx, dword [ebp - 4]
push 2
pop edx
call fcn.004802d5
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 8
call esi
movzx esi, al
test al, al
je 0x4a07ac
push 0x40
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x4a07b3
xor ecx, ecx
mov word [eax], cx
jmp 0x4a07b3
mov ecx, edi
call fcn.004803c4
test esi, esi
jne 0x4a07f5
and dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call esi
mov ecx, dword [ebp - 4]
test eax, eax
mov edi, 0x100
cmove ecx, edi
push 2
pop edx
mov dword [ebp - 4], ecx
call fcn.004802d5
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
mov esi, eax
test esi, esi
jne 0x4a07f5
mov ecx, edi
call fcn.004803c4
xor eax, eax
test esi, esi
cmovne eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a15a5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x2c], eax
je 0x4a15e6
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x4a15e2
mov ecx, dword [esi + 0x10]
push 1
push dword [esi + 8]
call fcn.004a0ce8
cmp dword [esi + 0x30], 0
je 0x4a15e2
push 2
push 1
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
and dword [esi + 0x30], 0
pop esi
pop ebp
ret 4
Function at 0x4a18a7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x4a18cf
cmp dword [esi + 0x20], edi
jle 0x4a1970
mov ecx, dword [esi + 0x18]
xor edx, edx
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
sub edi, eax
add eax, 8
add eax, ecx
jmp 0x4a18d5
xor edx, edx
lea eax, [esi + 0x38]
inc edx
push edx
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
jg 0x4a192a
jns 0x4a18f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4a18f3
xor eax, eax
cmp eax, 0x2710
jae 0x4a18fe
test ebx, ebx
js 0x4a196c
cmp eax, 0x2733
je 0x4a196c
test ebx, ebx
je 0x4a1967
cmp eax, 0x2745
je 0x4a1967
cmp eax, 0x2746
je 0x4a1967
push str.Network_error__winsock_.
push 0x4f2b08
call fcn.004a0859
pop ecx
pop ecx
jmp 0x4a18ac
cmp dword [esi + 0x3c], 0
je 0x4a1959
cmp ebx, edi
jge 0x4a1950
lea ecx, [esi + 0x38]
sub edi, ebx
push edi
lea eax, [ecx + ebx]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [esi + 0x3c], edi
jmp 0x4a18ac
and dword [esi + 0x3c], 0
jmp 0x4a18ac
push ebx
lea ecx, [esi + 0x18]
call fcn.00480287
jmp 0x4a18ac
mov dword [esi + 0x60], eax
jmp 0x4a1970
and dword [esi + 0x28], 0
pop edi
pop esi
pop ebx
ret
Function at 0x4a643f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x520a18], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x4a6472
movdqa xmm0, xmmword [0x4f5c30]
movdqa xmmword [0x521680], xmm0
movdqa xmm0, xmmword [0x4f5c10]
movdqa xmmword [0x521690], xmm0
push 0xf0
push 0
push esi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
xor edx, edx
mov dword [esi + 0x100], edx
mov byte [esi + 0x104], dl
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4db7a0]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4a6491
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [ebp + 8]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x4a72b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0xcc], edx
push eax
mov dword [ebp - 0xc8], ecx
call dword [sym.imp.msvcrt.dll_memcpy]
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0x1000000
push 0x14
push eax
call fcn.004a724e
push 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebp + 0x1c]
add esp, 0x24
dec eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xc0], eax
xor esi, esi
mov dword [ebp - 0xac], ebx
push 0x10
pop eax
push 0x20
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc4], esi
pop ebx
mov edi, dword [ebp + esi - 0xc0]
test edi, edi
je 0x4a73b7
mov esi, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x24]
mov edx, esi
push ebx
push eax
call fcn.004a724e
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0x18
xor ecx, ecx
mov al, byte [ebp + ecx - 0x24]
xor byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, ebx
jb 0x4a73a1
dec edi
jne 0x4a7371
mov esi, dword [ebp - 0xc4]
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + esi - 0xb4]
call dword [sym.imp.msvcrt.dll_memcpy]
add esi, 4
add esp, 0xc
mov dword [ebp - 0xc4], esi
cmp esi, 0xc
jb 0x4a7360
push 0x44
pop ecx
lea eax, [ebp - 0x88]
xor edx, edx
mov byte [eax], dl
inc eax
dec ecx
jne 0x4a73e5
mov ecx, ebx
lea eax, [ebp - 0x44]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4a73f0
mov ecx, ebx
lea eax, [ebp - 0x24]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4a73fb
lea eax, [ebp - 0xa8]
mov byte [eax], dl
inc eax
dec ebx
jne 0x4a7407
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4a76a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp dword [esi], 1
jne 0x4a7703
mov eax, dword [esi + 4]
mov ecx, ebx
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x20
pop edx
call fcn.004a724e
add esp, 0xc
xor edx, edx
mov dword [esi + 4], edx
mov edi, edx
movzx eax, byte [ebp + edx - 0x24]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, 0x20
jb 0x4a76e8
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 2
jne 0x4a772c
lea eax, [ebp - 0x24]
add esi, 4
push eax
push 0x20
push esi
push 0x20
pop edx
mov ecx, ebx
call fcn.004a724e
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0x18
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4aa336
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d15c6
mov eax, dword fs:[0]
push eax
mov eax, 0x502c
call fcn.00401910
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 0x800
lea eax, [ebp - 0x3010]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
test eax, eax
je 0x4aa520
cmp eax, ebx
jae 0x4aa520
push ebx
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
test eax, eax
je 0x4aa520
cmp eax, ebx
jae 0x4aa520
lea ecx, [ebp - 0x3010]
call fcn.004abb35
lea ecx, [ebp - 0x4010]
mov dword [ebp - 0x5038], eax
call fcn.004abb35
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4aa520
mov ecx, dword [ebp - 0x5038]
mov edx, edi
call fcn.004aed96
test eax, eax
je 0x4aa520
mov ecx, esi
call fcn.004abb35
mov edx, edi
mov ecx, eax
call fcn.004aed96
test eax, eax
jne 0x4aa520
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x4aa479
push 0x800
mov edx, esi
lea ecx, [ebp - 0x1010]
call fcn.004ae191
pop ecx
push edi
push str.rtmp_d
push 0x800
lea ecx, [ebp - 0x1010]
call fcn.004abb35
push eax
call fcn.004a2e15
add esp, 0x10
lea ecx, [ebp - 0x1010]
call fcn.004ab087
cmp eax, 0xffffffff
je 0x4aa45e
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x4aa465
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x4aa40c
test ax, ax
je 0x4aa520
mov edi, 0x800
lea ecx, [ebp - 0x2010]
push edi
mov edx, esi
call fcn.004ae191
mov edx, dword [ebp - 0x5038]
lea ecx, [ebp - 0x2010]
push edi
call fcn.004abcf5
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea eax, [ebp - 0x1010]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2010]
push eax
call edi
test eax, eax
je 0x4aa520
lea ecx, [ebp - 0x5034]
call fcn.004aa53e
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004ab079
test al, al
jne 0x4aa4e3
push 0x12
push esi
lea ecx, [ebp - 0x5034]
call fcn.004aa721
mov bl, al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call edi
test bl, bl
je 0x4aa50d
lea ecx, [ebp - 0x5034]
call fcn.004aa81a
lea ecx, [ebp - 0x5034]
call fcn.004aa866
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5034]
call fcn.004aa594
mov al, 1
jmp 0x4aa522
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x4aa594
Capabilities:
Delete file

Disassembly:
cmp dword [ecx + 4], 0xffffffff
mov dword [ecx], vtable.File.0
je 0x4aa5b5
cmp byte [ecx + 0x10], 0
jne 0x4aa5b5
cmp byte [ecx + 0x12], 0
jne fcn.004aa866
jmp fcn.004aa81a
ret

Function at 0x4aa866
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4aa873
xor al, al
pop esi
ret
cmp dword [esi + 4], 0xffffffff
je 0x4aa87e
call fcn.004aa81a
cmp byte [esi + 0x13], 0
je 0x4aa86f
lea ecx, [esi + 0x1e]
pop esi
jmp fcn.004ab154
Function at 0x4aa88d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x4aa937
cmp dword [esi + 0xc], 1
jne 0x4aa8b1
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
and dword [ebp + 0xc], 0
cmp dword [esi + 0xc], 0
je 0x4aa8fd
xor ebx, ebx
test edi, edi
je 0x4aa91b
mov edx, 0x4000
push 0
mov ecx, edi
lea eax, [ebp + 0xc]
push eax
sub ecx, ebx
mov eax, edx
cmp ecx, edx
cmovb eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
dec eax
neg eax
sbb al, al
inc al
je 0x4aa91b
mov edx, 0x4000
add ebx, edx
cmp ebx, edi
jb 0x4aa8c6
jmp 0x4aa917
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x4aa933
cmp byte [esi + 0x14], 0
je 0x4aa933
cmp dword [esi + 0xc], 0
jne 0x4aa933
push 5
mov ecx, 0x511830
call fcn.004a8561
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4aaa06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x4aaa1f
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4aaa92
mov ecx, esi
call fcn.004aad29
test al, al
je 0x4aaa5a
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x4aaa5a
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004aaa06
jmp 0x4aaa95
cmp dword [esi + 0xc], 1
jne 0x4aaa6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x4aaa6f
xor eax, eax
jmp 0x4aaa95
cmp dword [esi + 0xc], 0
jne 0x4aaa8d
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x4aaa8d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x21
jne 0x4aaa8d
push ebx
jmp 0x4aaa4e
or eax, 0xffffffff
jmp 0x4aaa95
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4aabbd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004aaacb
test al, al
je 0x4aabe9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov eax, dword [esi]
mov ecx, esi
push edi
push edi
push edi
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
ret 8