joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45132f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5aaa97
call fcn.0047b8f6
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.004507d7
call fcn.00438564
push eax
lea ecx, [ebp - 0x94]
call fcn.0043db3f
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0043856a
mov ecx, eax
call fcn.0043d6c2
test al, al
je 0x451477
push edi
lea ecx, [ebp - 0x94]
call fcn.0043d850
push esi
push 0x80
push 3
push esi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.00477dc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push esi
cmp eax, 0xffffffff
jne 0x4513d3
push str.Error_opening_file
mov ecx, ebx
call fcn.004509e2
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0043d597
mov al, bl
call fcn.0047b979
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x4513e8
push esi
push str.File_is_empty
jmp 0x4513b1
cmp edi, 0x400000
jbe 0x4513f8
push esi
push 0x5b528c
jmp 0x4513b1
push edi
mov dword [ebp - 0x2cc], esi
call fcn.00477c96
pop ecx
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push edi
push eax
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x451453
push dword [ebp - 0x2c8]
call fcn.0047a979
pop ecx
mov ecx, ebx
call fcn.004507d7
push esi
push str.Could_not_read_file
jmp 0x4513b1
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x2c8]
call fcn.004511dc
push dword [ebp - 0x2c8]
mov bl, al
call fcn.0047a979
pop ecx
jmp 0x4513ba
call fcn.0043856a
push eax
lea ecx, [ebp - 0x94]
call fcn.0043d833
call fcn.00438570
test al, al
je 0x451498
call fcn.00438576
jmp 0x4514af
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.00477dc0
push eax
call fcn.0044d135
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, esi
jne 0x4514c4
push esi
push str.Error_opening_zip_file
jmp 0x4513b1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push edi
push dword [ebp - 0x2c8]
call fcn.0044b75b
add esp, 0x14
test eax, eax
je 0x4514f2
push esi
push str.Could_not_find_ziped_file
jmp 0x4513b1
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp eax, esi
je 0x4513e0
cmp eax, 0x400000
ja 0x4513f0
push eax
call fcn.00477c96
push 3
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0044d193
add esp, 0x18
cmp eax, esi
je 0x451568
cmp eax, 0x600
je 0x451568
push edi
call fcn.0047a979
pop ecx
call fcn.00438570
test al, al
jne 0x45155d
push dword [ebp - 0x2c8]
call fcn.0044d1cb
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x4513b1
call fcn.00438570
test al, al
jne 0x45157d
push dword [ebp - 0x2c8]
call fcn.0044d1cb
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x2cc]
push edi
call fcn.004511dc
push edi
jmp 0x45146a
Function at 0x45974e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x459773
cmp eax, edi
jge 0x45976b
mov eax, esi
call fcn.0045900f
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x4597a0
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x459780
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x4597bf
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4597ad
xor eax, eax
jmp 0x4597b5
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4597a3
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4597f1
mov eax, str.zlib_corrupt
call fcn.004565c9
jmp 0x45982c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x459801
mov eax, str.read_past_buffer
jmp 0x4597ea
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x459816
mov ecx, edi
call fcn.00459142
test eax, eax
je 0x45982c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0047c750
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x45e6dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
test al, al
je 0x45e768
push esi
lea esi, [ecx - 4]
movsx eax, al
inc ebx
sub eax, 0x20
je 0x45e761
sub eax, 0x11
je 0x45e750
dec eax
je 0x45e72d
dec eax
dec eax
jne 0x45e767
push dword [ebp + 8]
add esi, 4
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
mov byte [ebp - 3], cl
mov ecx, eax
mov byte [ebp - 4], al
shr ecx, 0x10
shr eax, 0x18
push 1
mov byte [ebp - 1], al
mov byte [ebp - 2], cl
push 4
lea eax, [ebp - 4]
jmp 0x45e745
push dword [ebp + 8]
add esi, 4
mov eax, dword [esi]
mov byte [ebp + 0xc], al
sar eax, 8
push 1
mov byte [ebp + 0xd], al
push 2
lea eax, [ebp + 0xc]
push eax
call fcn.00479b48
add esp, 0x10
jmp 0x45e761
push dword [ebp + 8]
add esi, 4
movzx eax, byte [esi]
push eax
call fcn.00480826
pop ecx
pop ecx
mov al, byte [ebx]
test al, al
jne 0x45e6ee
pop esi
pop ebx
leave
ret

Function at 0x45e76b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
mov byte [ebp - 4], al
mov al, byte [ebp + 0xc]
mov byte [ebp - 3], al
mov al, byte [ebp + 0x10]
push 1
mov byte [ebp - 2], al
lea eax, [ebp - 4]
push 3
push eax
call fcn.00479b48
add esp, 0x10
leave
ret
Function at 0x45e793
Capabilities:
Encrypt data using rc4 ksa
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x28], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 8], 0xff
mov byte [ebp - 6], 0xff
test eax, eax
jle 0x45e929
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jns 0x45e7c5
or dword [ebp - 0x20], 0xffffffff
dec eax
mov dword [ebp - 0xc], eax
jmp 0x45e7cc
and dword [ebp - 0xc], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
je 0x45e928
imul eax, dword [ebp + 0x14]
imul esi, dword [ebp + 0x14]
imul eax, dword [ebp + 0x18]
imul esi, dword [ebp + 0x18]
lea edx, [eax + ecx]
mov dword [ebp - 0x18], edx
lea edx, [ebp - 8]
sub eax, edx
add eax, ecx
mov dword [ebp - 0x1c], eax
push edi
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x45e8fb
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0xfffffffe
sub dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x1c], 0
jge 0x45e837
push dword [ebp + 8]
lea eax, [edi + eax - 1]
push 1
push 1
push eax
call fcn.00479b48
add esp, 0x10
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
jle 0x45e8cd
cmp eax, 2
jle 0x45e8bd
cmp eax, 3
je 0x45e8a9
cmp eax, 4
jne 0x45e8cd
cmp dword [ebp + 0x1c], ecx
jne 0x45e8a9
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + ecx - 8]
mov dl, byte [eax]
movzx eax, byte [ebx + eax]
mov byte [ebp - 1], dl
movzx edx, dl
sub eax, edx
movzx edx, byte [edi + 3]
imul eax, edx
cdq
mov ebx, 0xff
idiv ebx
add al, byte [ebp - 1]
inc ecx
mov byte [ebp + ecx - 0x31], al
cmp ecx, 3
jl 0x45e858
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebp + ebx - 0x2f]
push eax
push dword [ebp - 0x2f]
lea eax, [ebp - 0x2f]
push dword [ebp + 8]
sub eax, ebx
mov al, byte [eax]
call fcn.0045e76b
add esp, 0xc
jmp 0x45e8ea
movzx eax, byte [edi + ebx + 1]
push eax
movzx eax, byte [edi + 1]
push eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edi + 3]
jmp 0x45e8c2
movzx eax, byte [edi]
push eax
push eax
push dword [ebp + 8]
call fcn.0045e76b
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jle 0x45e8ea
push dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push 1
lea eax, [edi + eax - 1]
push 1
push eax
call fcn.00479b48
add esp, 0x10
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x14], eax
add edi, eax
dec dword [ebp - 0x24]
jne 0x45e81d
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 1
push dword [ebp + 0x20]
push eax
call fcn.00479b48
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
add dword [ebp - 0x18], esi
add dword [ebp - 0x1c], esi
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x20]
jne 0x45e7f9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f0fe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
or eax, 0xffffffff
push esi
cmp dword [0x62c6c4], edx
jne 0x45f146
push ebx
mov ecx, 0x62c6c0
push edi
push 8
mov dword [ecx], edx
mov esi, edx
pop edi
mov ebx, esi
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr esi, 1
xor esi, ebx
dec edi
jne 0x45f11d
mov dword [ecx], esi
add ecx, 4
inc edx
cmp ecx, 0x62cac0
jl 0x45f116
pop edi
pop ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x45f16e
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x62c6c0]
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x45f14d
not eax
pop esi
pop ebp
ret
Function at 0x475af4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x629214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x475b65
cmp dword [esi + 0x10], ebx
je 0x475b65
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0047ccb0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x475b65
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.0043d71a
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043a7aa
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478c25
leave
ret 0x10

Function at 0x478c25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x629214]
jne 0x478c2f
repz ret
jmp fcn.00483c89
Function at 0x49a780
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x629214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048adcc
and dword [ebp - 0x14], 0
cmp dword [0x62df44], 0
mov dword [ebp - 0x18], eax
jne 0x49a833
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a8db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5be6dc
push ebx
call edi
test eax, eax
je 0x49a8db
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x62df44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62df48], eax
call edi
push eax
call esi
push 0x5be69c
push ebx
mov dword [0x62df4c], eax
call edi
push eax
call esi
mov dword [0x62df54], eax
test eax, eax
je 0x49a833
push 0x5be684
push ebx
call edi
push eax
call esi
mov dword [0x62df50], eax
mov eax, dword [0x62df50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x49a88c
cmp dword [0x62df54], ecx
je 0x49a88c
push eax
call esi
push dword [0x62df54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a88c
test ebx, ebx
je 0x49a88c
call edi
test eax, eax
je 0x49a883
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a883
test byte [ebp - 8], 1
jne 0x49a88c
or dword [ebp + 0x10], 0x200000
jmp 0x49a8bf
mov eax, dword [0x62df48]
cmp eax, dword [ebp - 0x18]
je 0x49a8bf
push eax
call esi
test eax, eax
je 0x49a8bf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a8bf
mov eax, dword [0x62df4c]
cmp eax, dword [ebp - 0x18]
je 0x49a8bf
push eax
call esi
test eax, eax
je 0x49a8bf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62df44]
call esi
test eax, eax
je 0x49a8db
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a8dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c25
leave
ret
Function at 0x4ab090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac508
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x629214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00479274
add esp, 4
cmp eax, ebx
je 0x4ab174
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.00479274
add esp, 4
cmp eax, ebx
je 0x4ab150
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0047903a
push 0x6220a0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0047d1fe
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0047903a
push 0x6220a0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0047d1fe
int3

Function at 0x4b0a10
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.0047dba0
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x4b0a86
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004b5af0
jmp 0x4b0a9f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004b5c10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x4c0e70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c25b0
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4c25f1
push 0xc3
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004b74e0
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x4d11f0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.004ff2d0
push 0x62
push esi
mov edi, eax
mov ebp, 1
call fcn.005a3c40
add esp, 0x10
test eax, eax
jne 0x4d121c
lea ebp, [eax + 0x11]
test edi, edi
jne 0x4d12a5
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004b74e0
push 0x5c2ed8
push esi
push 0x5c2ed4
push ebx
push str.fopen_
push 5
call fcn.004b7930
add esp, 0x2c
call fcn.004838fb
cmp dword [eax], 2
je 0x4d1286
call fcn.004838fb
cmp dword [eax], 6
je 0x4d1286
push 0x51
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004b74e0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x4f
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004b74e0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x5c2e78
call fcn.004b20a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d12c8
push edi
call fcn.00479f11
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004b2280
push edi
push ebp
push 0x6a
push esi
call fcn.004b2a70
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4d22a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
test edx, edx
je 0x4d22b7
test byte [edx + 0x5c], 2
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x4d22bc
mov esi, 0x5c3068
test ebp, ebp
jle 0x4d2385
push ebx
push edi
mov edi, dword [esp + 0x14]
inc edi
jmp 0x4d22d0
movzx edx, byte [edi - 1]
cmp ebp, 3
jl 0x4d2321
movzx ebx, byte [edi]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + 1]
shl edx, 8
or edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx], bl
mov ebx, edx
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 1], bl
mov ebx, edx
shr ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 2], bl
and edx, 0x3f
mov dl, byte [edx + esi]
mov byte [ecx + 3], dl
jmp 0x4d2369
shl edx, 0x10
cmp ebp, 2
jne 0x4d2331
movzx ebx, byte [edi]
shl ebx, 8
or edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx], bl
mov ebx, edx
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + esi]
mov byte [ecx + 1], bl
cmp ebp, 1
jne 0x4d2358
lea edx, [ebp + 0x3c]
jmp 0x4d2362
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + esi]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub ebp, 3
add ecx, 4
add eax, 4
add edi, 3
test ebp, ebp
jg 0x4d22d0
pop edi
pop ebx
pop esi
mov byte [ecx], 0
pop ebp
ret
pop esi
mov byte [ecx], al
pop ebp
ret

Function at 0x4d6a50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [esp + 0x10]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x4d6a83
push ebx
lea esp, [esp]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x4d6a70
pop ebx
pop edi
pop esi
ret
Function at 0x4e7a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0047dba0
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, edx
push ebp
mov esi, 1
push eax
mov ebx, ecx
shl esi, cl
mov dword [esp + 0x18], edi
call fcn.004c3770
add esp, 8
test eax, eax
jne 0x4e7a4b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp ebx, 3
jg 0x4e7aad
xor ebx, ebx
test ebp, ebp
jle 0x4e7c10
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x4e7a8f
mov eax, ecx
xor eax, dword [esp + 0x44]
inc ecx
lea ebp, [eax - 1]
shr ebp, 0x1f
not eax
shr eax, 0x1f
and ebp, eax
mov eax, dword [edi + ecx*4 - 4]
neg ebp
and ebp, 1
neg ebp
and ebp, eax
or edx, ebp
cmp ecx, esi
jl 0x4e7a68
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [eax + ebx*4], edx
lea eax, [esi*4]
inc ebx
add edi, eax
cmp ebx, dword [esp + 0x40]
jl 0x4e7a60
jmp 0x4e7c10
mov edx, dword [esp + 0x44]
lea ecx, [ebx - 2]
mov eax, edx
sar eax, cl
mov edi, 1
shl edi, cl
lea ebx, [eax - 1]
shr ebx, 0x1f
lea ecx, [edi - 1]
and edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
not edx
shr edx, 0x1f
and ebx, edx
mov ecx, eax
xor ecx, 1
lea edx, [ecx - 1]
not ecx
shr ecx, 0x1f
shr edx, 0x1f
and edx, ecx
mov ecx, eax
xor ecx, 2
lea ebp, [ecx - 1]
not ecx
shr ecx, 0x1f
shr ebp, 0x1f
and ebp, ecx
xor eax, 3
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ebx
neg edx
neg ebp
neg ecx
and ebx, 1
and edx, 1
and ebp, 1
and ecx, 1
xor eax, eax
neg edx
neg ebp
neg ecx
neg ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], eax
jle 0x4e7c10
lea edx, [esi*4]
mov dword [esp + 0x34], edx
mov edi, edi
xor esi, esi
mov dword [esp + 0x20], esi
cmp edi, esi
jle 0x4e7bec
mov eax, dword [esp + 0x10]
lea edx, [eax + edi*4]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi*8]
mov dword [esp + 0x18], edx
lea edx, [edi + edi*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
and edx, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, ebp
or ecx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
and edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
or edx, ecx
mov eax, esi
xor eax, dword [esp + 0x44]
inc esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4 - 4]
neg ecx
and ecx, 1
and eax, ebx
neg ecx
or eax, edx
and ecx, eax
or dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
cmp esi, edi
jl 0x4e7b80
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x34]
add dword [esp + 0x10], edx
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x40]
jl 0x4e7b50
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx + 4], eax
mov eax, 1
pop ebx
add esp, 0x28
ret