joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5904e0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5c4770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push 1
push str.SOFTWAREETermProxy
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::constructor_char___bool_
push str.software_version
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call sym.ETermProxy.exe_public:_char____thiscall_CRWReg::ReadString_char__
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 4]
push eax
push str.db_s
push ecx
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 8]
push edx
push eax
lea ecx, [esp + 8]
push str.db_bak_ver_s__s
push ecx
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp]
push 0
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x5905b4
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 4
call fcn.0059728a
lea ecx, [esp]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::destructor_void_
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x5916e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c4908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 0x210]
mov byte [esp + 0x30], 1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x2f0]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x59180d
push ebx
push ebp
push edi
mov ecx, dword [esi + 0x2ec]
xor ebp, ebp
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jle 0x5917f7
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + ebp*4]
lea edi, [eax + 0x408]
mov eax, dword [eax + 0x408]
cmp dword [eax - 8], 6
jne 0x5917e3
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x5917e3
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x5917d8
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040aab0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x3c], 1
test eax, eax
lea ecx, [esp + 0x14]
je 0x591851
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x591797
push edi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [ebx + 0x20]
inc ebp
cmp ebp, eax
jl 0x591758
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x2f0]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x591742
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x208]
lea ecx, [esi + 0x208]
call dword [edx + 0x1c]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005971b2
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
call sub.MFC42.DLL_CString::CString
jmp 0x5917e3
Function at 0x591ca0
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c49e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esp
push 1
push eax
call fcn.004ed780
add esp, 8
push str.AutoUpdate.exe.new
lea ecx, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operator_3
mov bl, 2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x591d18
mov byte [ebp - 4], bl
jmp 0x591e3c
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004ed780
add esp, 8
push str.Backup
lea ecx, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.004ed780
add esp, 8
push str.AutoUpdate.exe
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
push 1
push ecx
call fcn.004ed780
add esp, 8
push str.BackupAutoUpdate.exe
lea edx, [ebp - 0x18]
push eax
push edx
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
call sub.MFC42.DLL_CFile::Remove
push 0
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xc
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::GetBuffer
push 0
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::GetBuffer
push esi
push eax
call sub.MFC42.DLL_CFile::Rename
jmp 0x591e11
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.0059728a
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x595840
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [0x63ac20]
push edi
or ecx, 0xffffffff
mov edx, dword [eax + 0x44]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 2
jbe 0x595882
mov cx, word [edx]
lea edx, [esp]
mov word [esp + 1], ax
push edx
mov word [esp + 4], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x595882
cmp eax, 5
je 0x595882
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x596210
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x59627c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 8], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x596310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xc8
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret

Function at 0x596290
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x5962ba
push 0x442
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call edi
mov dword [esi + 4], ebp
mov ecx, dword [esi + 8]
push ecx
call edi
mov edx, dword [esi + 0xc]
mov dword [esi + 8], ebp
push edx
call edi
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], ebp
push eax
call edi
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x40]
xor ebx, ebx
cmp eax, ebp
jle 0x596300
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + ebx*4]
cmp edi, ebp
je 0x5962f8
mov ecx, edi
call fcn.00596980
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 0x40]
inc ebx
cmp ebx, eax
jl 0x5962de
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x598080
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x40
push ebp
mov ebp, ecx
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x50]
cmp ecx, 1
mov dword [ebp + 0xc], edx
mov byte [ebp + 0x1058], al
jae 0x5980bc
xor al, al
pop ebp
add esp, 0x40
ret 0x10
cmp ecx, 0x38
jbe 0x5980ca
mov ecx, 0x38
mov dword [esp + 0x4c], ecx
push ebx
push esi
mov esi, dword [esp + 0x50]
mov edx, ecx
push edi
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
mov dword [esp + 0x54], 0x12
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x5d34e4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x5d352c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
xor esi, esi
mov edi, edx
mov bl, byte [ebp + 0x1058]
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], 4
mov bl, byte [esp + 0x5c]
test bl, bl
je 0x59813b
xor ebx, ebx
mov bl, byte [ecx]
shl eax, 8
or eax, ebx
inc ecx
jmp 0x598145
xor ebx, ebx
mov bl, byte [ecx]
or eax, ebx
inc ecx
shl eax, 8
mov ebx, dword [esp + 0x58]
inc esi
cmp esi, ebx
jne 0x598154
xor esi, esi
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x60]
dec ebx
mov dword [esp + 0x60], ebx
jne 0x598127
mov ebx, dword [edi]
add edi, 4
xor ebx, eax
mov eax, dword [esp + 0x54]
mov dword [edi - 4], ebx
dec eax
mov dword [esp + 0x54], eax
jne 0x598113
xor edi, edi
mov esi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00598200
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x598180
lea ebx, [ebp + 0x58]
mov dword [esp + 0x5c], 4
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00598200
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x5981b4
mov eax, dword [esp + 0x5c]
add ebx, 0x400
dec eax
mov dword [esp + 0x5c], eax
jne 0x5981b0
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x40
ret 0x10

Function at 0x599020
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x59904b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x59903b
pop esi
pop ebx
pop edi
ret

Function at 0x5991c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10009553
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x1000de85
call fcn.1000d6f9
push 0x10
call fcn.1000c83a
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.10007492
mov esi, eax
push 0xa8
mov ecx, esi
call fcn.100074ba
push 1
call fcn.100074ba
call fcn.100074de
mov ecx, esi
call fcn.1000ad6a
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x10014754]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.1000ca80
push 0x10
push esi
call fcn.1000c86a
add esp, 0xc
call fcn.1000d6d6
ret 8
Function at 0x1000a524
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x1000a54a
mov word [esi], bx
jmp 0x1000a552
cmp dword [ebp + 8], 1
jne 0x1000a552
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret

Function at 0x1000a567
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
mov ebx, edx
push eax
mov esi, ecx
push 0x40
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push dword [ebp - 4]
call esi
pop esi
pop ebx
leave
ret
Function at 0x1000ad6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10014008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x719d78]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x719d7c]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x719d80]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete bl
mov dword [ebp - 0xc], eax
mov eax, dword [0x719d84]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 8], eax
lea ebx, [ebx*4 + 2]
add esi, ebx
mov dword [ebp - 0x28], ebx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x1000adcd
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x1000add9
push 8
pop eax
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
add ecx, ebx
and edx, 3
mov dword [ebp - 0x20], ecx
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x1000ae6d
mov edi, dword [ecx + edx*4]
xor esi, esi
mov ebx, dword [ecx + edx*4 + 4]
push 0x20
pop edx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
sub esi, 0x61c88647
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
add ebx, ecx
sub edx, 1
jne 0x1000ae04
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x24]
jl 0x1000adf8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
lea ecx, [ebx - 2]
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000c62f
leave
ret
Function at 0x1000ae89
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10014008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x719d78]
mov dword [ebp - 0x14], eax
mov eax, dword [0x719d7c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x719d80]
mov dword [ebp - 0xc], eax
mov eax, dword [0x719d84]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
test eax, eax
jle 0x1000af4b
push ebx
push edi
mov edi, dword [esi + edx*4 + 2]
mov ebx, dword [esi + edx*4 + 6]
mov esi, 0xc6ef3720
push 0x20
pop edx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
add esi, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
sub edi, ecx
sub edx, 1
jne 0x1000aee8
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esi + edx*4 + 2], edi
mov dword [esi + edx*4 + 6], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x1000aed8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000c62f
leave
ret
Function at 0x1000bbe2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000bc05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x1000bcc5
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1000bc2b
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000bc30
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000bc91
jg 0x1000bc45
test esi, esi
je 0x1000bc91
test ecx, ecx
jl 0x1000bc8c
jg 0x1000bc4f
test eax, eax
je 0x1000bc8c
cmp edi, ecx
jg 0x1000bc61
jl 0x1000bc59
cmp esi, eax
jae 0x1000bc61
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000bc94
mov ecx, dword [ebp + 8]
jmp 0x1000bc9e
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000bcb9
jg 0x1000bc9e
test esi, esi
je 0x1000bcb9
cmp dword [ebx + 0x4c], 0
je 0x1000bcb9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000bcca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jg 0x1000bcec
jl 0x1000bce3
test edi, edi
jne 0x1000bcec
xor eax, eax
xor edx, edx
jmp 0x1000bdbb
cmp dword [ecx + 0x38], 0
je 0x1000bd02
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1000bdbb
mov eax, dword [ecx + 0x1c]
push esi
mov esi, edi
mov edx, dword [eax]
test edx, edx
je 0x1000bd4d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1000bd4d
cmp eax, edi
jb 0x1000bd23
mov eax, edi
mov dword [ebp + 0x10], edi
mov esi, dword [ebp + 8]
push eax
push edx
push esi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add esi, edx
mov dword [ebp + 8], esi
mov esi, edi
sub esi, edx
mov eax, dword [ecx + 0x2c]
sub dword [eax], edx
mov eax, dword [ecx + 0x1c]
add dword [eax], edx
jmp 0x1000bd53
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x1000bdb1
call fcn.1000c300
mov edx, dword [ebp + 8]
mov eax, esi
cmp esi, 0xfff
jbe 0x1000bd9b
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub esi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x1000bdb1
cmp esi, ecx
mov ecx, dword [ebp - 4]
ja 0x1000bd6b
mov eax, esi
test eax, eax
je 0x1000bdb1
push dword [ecx + 0x4c]
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sub edi, esi
mov eax, edi
sbb ebx, 0
mov edx, ebx
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x1000c031
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10014008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000c054
xor eax, eax
jmp 0x1000c112
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x1000c076
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x1000c076
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x1000c112
cmp dword [esi + 0x4c], 0
push edi
je 0x1000c10e
call fcn.1000c300
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000c092
movsx eax, bl
jmp 0x1000c0cb
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000c0e0
sub eax, 1
je 0x1000c0e0
dec eax
sub eax, 1
jne 0x1000c10e
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000c10a
or ebx, eax
jmp 0x1000c10a
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000c0fe
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000c10e
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1000c10e
mov eax, ebx
jmp 0x1000c111
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c62f
leave
ret 4