joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5735b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5bf277
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov al, byte [0x631fcc]
mov edx, dword [0x604620]
xor ecx, ecx
mov byte [esp + 0x18], al
mov eax, dword [0x60461c]
mov word [esp + 0x19], cx
mov byte [esp + 0x1b], cl
mov ecx, dword [0x604618]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [0x604610]
mov dword [esp + 0x20], eax
mov eax, dword [0x604614]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x60460c]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x28], edx
mov edx, dword [0x604604]
mov dword [esp + 0x2c], eax
mov eax, dword [0x604608]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x604600]
mov dword [esp + 0x34], edx
mov edx, dword [0x6045f8]
mov dword [esp + 0x38], eax
mov eax, dword [0x6045fc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x6045f4]
push esi
mov dword [esp + 0x58], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call edi
cdq
mov ecx, 0x64
idiv ecx
mov ebp, edx
lea edx, [esi + 5]
push edx
call edi
add esi, 8
mov ebx, eax
push esi
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
cmp ebp, 0x10
mov byte [esp + 0x54], 2
jl 0x5736cb
test ebx, ebx
jle 0x5736cb
cmp ebx, 0xc
jge 0x5736cb
test esi, esi
jle 0x5736cb
cmp esi, 0x20
jge 0x5736cb
lea eax, [esp + ebx*4 + 0x18]
lea ecx, [esp + 0x10]
push eax
push esi
push str._02d_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov esi, dword [esp + 0x5c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x5739e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5bf3c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x577860
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5bf92f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov al, byte [0x631fcc]
mov edx, dword [0x604620]
xor ecx, ecx
mov byte [esp + 4], al
mov eax, dword [0x60461c]
mov word [esp + 5], cx
mov byte [esp + 7], cl
mov ecx, dword [0x604618]
mov dword [esp + 8], edx
mov edx, dword [0x604610]
mov dword [esp + 0xc], eax
mov eax, dword [0x604614]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x60460c]
push ebx
mov dword [esp + 0x18], edx
mov edx, dword [0x604604]
mov dword [esp + 0x1c], eax
mov eax, dword [0x604608]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x604600]
push ebp
push esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
mov edx, dword [0x6045f8]
mov dword [esp + 0x30], eax
mov eax, dword [0x6045fc]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x6045f4]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call edi
lea edx, [esi + 5]
mov ebp, eax
push edx
call edi
add esi, 8
mov ebx, eax
push esi
call edi
add esp, 0xc
lea ecx, [esp + 0x5c]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
mov edi, 1
cmp ebp, 0x7c6
mov dword [esp + 0x50], edi
jle 0x57797d
test ebx, ebx
jle 0x57797d
cmp ebx, 0xc
jg 0x57797d
test esi, esi
jle 0x57797d
cmp esi, 0x1f
jg 0x57797d
mov eax, ebp
mov ecx, 0x64
cdq
idiv ecx
lea eax, [esp + 0x5c]
push edx
lea edx, [esp + ebx*4 + 0x18]
push edx
push esi
push str._02d_s_02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x586d20
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x586d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ecx
ret

Function at 0x587170
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x443
mov eax, dword [esi + 0xc]
mov dword [esi], 0x5d0178
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esi, 0x18
lea ecx, [esi + 8]
mov dword [esi], 0x5cdd24
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, esi
call fcn.00594e66
pop esi
ret

Function at 0x5871b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
jmp 0x5871c0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x5871f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
jmp 0x5871e2
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58cb50
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5c1800
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 0x58cc24
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.005949aa
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 0x58dcd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 0x210]
push edi
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x304]
dec edi
js 0x58dd28
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 0x300]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x58dd1f
mov eax, dword [esi + 0x78]
test eax, eax
je 0x58dd1f
mov eax, dword [eax + 0x3c]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x58dd24
dec edi
jns 0x58dcf9
jmp 0x58dd28
mov dword [esp + 0x10], esi
mov edx, dword [ebx + 0x208]
lea ecx, [ebx + 0x208]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x58dd50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c1998
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 0x58de7d
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 0x58de67
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + ebp*4]
lea edi, [eax + 0x404]
mov eax, dword [eax + 0x404]
cmp dword [eax - 8], 6
jne 0x58de53
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x58de53
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 0x58de48
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040aa90
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 0x58dec1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x58de07
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 0x58ddc8
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 0x58ddb2
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.005948d2
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 0x58de53
Function at 0x58e310
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1a78
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.004ec530
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 0x58e388
mov byte [ebp - 4], bl
jmp 0x58e4ac
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004ec530
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.004ec530
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.004ec530
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 0x58e481
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.005949aa
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 0x591e10
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [0x637770]
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 0x591e52
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 0x591e52
cmp eax, 5
je 0x591e52
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x5927e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x59284c
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 0x5928e0
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 0x592860
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 0x59288a
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 0x5928d0
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + ebx*4]
cmp edi, ebp
je 0x5928c8
mov ecx, edi
call fcn.00592f50
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 0x40]
inc ebx
cmp ebx, eax
jl 0x5928ae
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x595780
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 0x5957bc
xor al, al
pop ebp
add esp, 0x40
ret 0x10
cmp ecx, 0x38
jbe 0x5957ca
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, 0x5d0494
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x5d04dc
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 0x59583b
xor ebx, ebx
mov bl, byte [ecx]
shl eax, 8
or eax, ebx
inc ecx
jmp 0x595845
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 0x595854
xor esi, esi
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x60]
dec ebx
mov dword [esp + 0x60], ebx
jne 0x595827
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 0x595813
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.00595900
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 0x595880
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.00595900
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 0x5958b4
mov eax, dword [esp + 0x5c]
add ebx, 0x400
dec eax
mov dword [esp + 0x5c], eax
jne 0x5958b0
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x40
ret 0x10

Function at 0x596720
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x59674b
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 0x59673b
pop esi
pop ebx
pop edi
ret

Function at 0x5968c0
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 0x403824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x465020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40389c
xor eax, eax
push ebp
push 0x403895
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40389c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x465020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x465020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467048], 0
je 0x404721
cmp word [0x46721c], 0xd7b2
jne 0x4046e9
cmp dword [0x467224], 0
jbe 0x4046e9
mov eax, 0x467218
call dword [0x467234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404748
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46502c], 0
jne 0x40473d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404898
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x465030], 0
je 0x4048be
mov edx, esi
mov eax, ebx
call dword [0x465030]
jmp 0x4048cd
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x467049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404860
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc