joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b89dc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4b89f5
or eax, 0xffffffff
jmp 0x4b8a56
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4b8a52
push 0x3d
push esi
call fcn.004a569b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4b8a52
cmp esi, eax
je 0x4b8a52
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x569140]
sete cl
cmp eax, dword [0x569144]
mov dword [ebp - 8], ecx
jne 0x4b8a38
mov edi, eax
call fcn.004b897b
mov dword [0x569140], eax
cmp eax, ebx
jne 0x4b8a91
cmp dword [ebp + 0xc], ebx
je 0x4b8a5a
cmp dword [0x569148], ebx
je 0x4b8a5a
call fcn.004b3a7d
test eax, eax
je 0x4b8a91
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4b8a63
xor eax, eax
jmp 0x4b8a55
push 4
call fcn.004a340f
cmp eax, ebx
pop ecx
mov dword [0x569140], eax
je 0x4b8a52
mov dword [eax], ebx
cmp dword [0x569148], ebx
jne 0x4b8a91
push 4
call fcn.004a340f
cmp eax, ebx
pop ecx
mov dword [0x569148], eax
je 0x4b8a52
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x569140]
call fcn.004b892e
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4b8af2
cmp dword [esi], ebx
je 0x4b8af2
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004a235d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4b8ad5
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4b8b33
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4b8acc
mov eax, edi
shl eax, 2
push eax
push dword [0x569140]
call fcn.004a5235
cmp eax, ebx
pop ecx
pop ecx
je 0x4b8b33
jmp 0x4b8b2e
cmp dword [ebp - 8], ebx
jne 0x4b8b9e
cmp edi, ebx
jge 0x4b8b01
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x569140]
call fcn.004a5235
cmp eax, ebx
pop ecx
pop ecx
je 0x4b8a52
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x569140], eax
cmp dword [ebp + 0xc], ebx
je 0x4b8b88
push dword [ebp - 4]
call fcn.004a1ba0
inc eax
inc eax
push eax
call fcn.004a340f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4b8b88
push dword [ebp - 4]
push esi
call fcn.004a30a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4b8b81
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004a235d
pop ecx
cmp dword [ebp - 8], ebx
je 0x4b8b96
push dword [ebp - 4]
call fcn.004a235d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4b8a55
push dword [ebp - 4]
call fcn.004a235d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4b8a5f
Function at 0x4b8bb1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4b8bdc
cmp eax, 1
je 0x4b8bdc
jle 0x4b8be4
cmp eax, 3
jle 0x4b8bdc
cmp eax, 4
jne 0x4b8be4
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4b8c0f
call fcn.004a2ce1
mov dword [eax], 0x16
call fcn.004a2cea
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x4b8d88
inc eax
cmp byte [eax], bl
jne 0x4b8bfe
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4b8c0f
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4b8bfe
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004a2db0
mov dword [ebp - 0x68], esi
mov esi, dword [0x56a824]
add esp, 0xc
cmp esi, ebx
je 0x4b8c55
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x56a840]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x4b8c55
dec esi
dec ecx
cmp esi, ebx
jne 0x4b8c35
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.004a676a
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4b8cbc
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x56a840]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4b8ca8
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4b8cad
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4b8c81
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4b8ced
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4b8cd3
mov edi, esi
jmp 0x4b8cd6
push 3
pop edi
cmp edx, edi
jge 0x4b8ce6
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4b8cca
mov dword [ebp - 0xc], 8
call fcn.004a2ce1
mov dword [eax], ebx
call fcn.004a2cea
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004a235d
cmp esi, ebx
pop ecx
jne 0x4b8d3d
push edi
call fcn.004a2cf3
pop ecx
or eax, 0xffffffff
jmp 0x4b8d86
cmp dword [ebp + 8], 2
jne 0x4b8d49
push ebx
call fcn.004a823b
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4b8d76
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4b8d7f
cmp dword [ebp + 8], 4
je 0x4b8d6f
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b99be
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x542b48
call fcn.004a3504
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x569618], edi
jne 0x4b9a02
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b99ed
mov dword [0x569618], ebx
jmp 0x4b9a02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b9a02
mov dword [0x569618], 2
mov eax, dword [0x569618]
cmp eax, ebx
jne 0x4b9a22
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4b9ae5
cmp eax, 2
je 0x4b9a2b
cmp eax, edi
jne 0x4b9a53
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4b9a3e
mov eax, dword [0x569580]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4b9a5a
xor eax, eax
jmp 0x4b9ae5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004a3660
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4b9a8d
cmp esi, edi
jne 0x4b9aa3
push dword [ebp - 0x20]
call fcn.004a340f
pop ecx
mov esi, eax
cmp esi, edi
je 0x4b9a53
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4b9ad6
cmp dword [ebp + 0x14], edi
jne 0x4b9ac0
push edi
push edi
jmp 0x4b9ac6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4b9ae2
push esi
call fcn.004a235d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004a353f
ret
Function at 0x4b9aee
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x542b58
call fcn.004a3504
xor esi, esi
cmp dword [0x56961c], esi
jne 0x4b9b32
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b9b1d
mov dword [0x56961c], edi
jmp 0x4b9b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b9b32
mov dword [0x56961c], 2
mov eax, dword [0x56961c]
cmp eax, 2
je 0x4b9c13
cmp eax, esi
je 0x4b9c13
cmp eax, 1
jne 0x4b9b77
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4b9b60
mov eax, dword [0x569580]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4b9b7e
xor eax, eax
jmp 0x4b9c25
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004a3660
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4b9bb4
cmp edi, esi
jne 0x4b9bcf
lea eax, [ebx + ebx]
push eax
call fcn.004a340f
pop ecx
mov edi, eax
cmp edi, esi
je 0x4b9b77
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b9c02
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4b9bec
push esi
push esi
jmp 0x4b9bf2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4b9c0e
push edi
call fcn.004a235d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4b9c25
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004a353f
ret
Function at 0x4cb5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4cb651
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4cb651
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4cb63a
jmp 0x4cb651
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4cc460
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x523aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x3b0
mov dword [esi], 0x548838
call fcn.00507ead
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4cc4a5
mov ecx, eax
call fcn.004de580
jmp 0x4cc4a7
xor eax, eax
test eax, eax
mov dword [esi + 4], eax
jne 0x4cc4c9
push 0x10
push 0x54882c
push 0x548818
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4cfd60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4cfd9c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov edx, dword [esp + 0x18]
mov dword [edx], eax
je 0x4cfd9c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4cfda3
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
ret 0x10
Function at 0x4d2200
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x523c8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 5
call fcn.004d1cd0
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
lea edi, [esi + 0x3c]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 4
call fcn.004d1b60
mov eax, dword [edi + 4]
push eax
call fcn.00507ed8
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x30]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.004d1b60
mov eax, dword [edi + 4]
push eax
call fcn.00507ed8
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004d1b60
mov eax, dword [edi + 4]
push eax
call fcn.00507ed8
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x18]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.004d1b60
mov eax, dword [edi + 4]
push eax
call fcn.00507ed8
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
lea edi, [esi + 0xc]
add esp, 4
mov byte [esp + 0x1c], bl
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004d1b60
mov eax, dword [edi + 4]
push eax
call fcn.00507ed8
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call fcn.004d1b60
mov eax, dword [esi + 4]
push eax
call fcn.00507ed8
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d2350
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x523cd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046c4f0
mov dword [esi + 4], eax
mov bl, 1
mov byte [eax + 0x2d], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [esi + 8], ebp
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.0046c4f0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.0046c4f0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.0046c4f0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x1c], 3
call fcn.0046c4f0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x3c]
mov ecx, edi
mov byte [esp + 0x1c], 4
call fcn.0046c4f0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
pop edi
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d4170
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor eax, eax
lea ecx, [ecx]
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
and dl, 1
mov byte [eax + 0x56a300], dl
inc eax
cmp eax, 0x40
jl 0x4d4180
xor eax, eax
movsx ecx, byte [eax + str.91__]
mov dl, byte [ecx + 0x56a2ff]
movsx ecx, byte [eax + 0x549031]
mov byte [eax + 0x5697c8], dl
mov dl, byte [ecx + 0x56a2ff]
movsx ecx, byte [eax + 0x549032]
mov byte [eax + 0x5697c9], dl
mov dl, byte [ecx + 0x56a2ff]
movsx ecx, byte [eax + 0x549033]
mov byte [eax + 0x5697ca], dl
mov dl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697cb], dl
add eax, 4
cmp eax, 0x38
jl 0x4d41a0
mov edx, dword [0x5637ac]
mov ebp, dword [0x5637a8]
mov ecx, 0xe
mov esi, 0x5697c8
mov edi, 0x56a300
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
nop
movsx eax, byte [eax + 0x549098]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov esi, edx
mov edi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1c
sub ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [edx + eax]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
shr ecx, 2
mov edi, edx
sub edi, eax
add edi, 0x1c
mov esi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
movsx eax, byte [ecx + 0x549098]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov esi, ebp
mov edi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1c
sub ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [eax + ebp]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
sub edi, eax
mov ecx, eax
shr ecx, 2
add edi, 0x1c
mov esi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea ebx, [ebx]
movsx ecx, byte [eax + 0x549068]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697c8], cl
movsx ecx, byte [eax + 0x549069]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697c9], cl
movsx ecx, byte [eax + 0x54906a]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697ca], cl
movsx ecx, byte [eax + 0x54906b]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697cb], cl
movsx ecx, byte [eax + 0x54906c]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697cc], cl
movsx ecx, byte [eax + 0x54906d]
mov cl, byte [ecx + 0x56a2ff]
mov byte [eax + 0x5697cd], cl
add eax, 6
cmp eax, 0x30
jl 0x4d42d0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, ebx
inc eax
add ebx, 0x30
cmp eax, 0x10
mov ecx, 0xc
mov esi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jl 0x4d4220
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4d4480
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x548fe0]
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x548fe1]
mov byte [eax + 0x5697c8], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x548fe2]
mov byte [eax + 0x5697c9], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x548fe3]
mov byte [eax + 0x5697ca], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x548fe4]
mov byte [eax + 0x5697cb], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x548fe5]
mov byte [eax + 0x5697cc], dl
mov dl, byte [ecx + ebx - 1]
mov byte [eax + 0x5697cd], dl
add eax, 6
cmp eax, 0x30
jl 0x4d4490
mov ecx, 0xc
mov esi, 0x5697c8
mov edi, 0x56a340
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, esi
xor eax, eax
sub edi, 0x56a340
lea ecx, [ecx]
mov cl, byte [edi + eax + 0x56a340]
mov dl, byte [eax + 0x56a340]
xor dl, cl
mov cl, byte [eax + 0x56a341]
mov byte [eax + 0x56a340], dl
mov dl, byte [esi + eax + 1]
xor cl, dl
mov dl, byte [eax + 0x56a342]
mov byte [eax + 0x56a341], cl
mov cl, byte [esi + eax + 2]
xor dl, cl
mov cl, byte [eax + 0x56a343]
mov byte [eax + 0x56a342], dl
mov dl, byte [esi + eax + 3]
xor cl, dl
mov dl, byte [eax + 0x56a344]
mov byte [eax + 0x56a343], cl
mov cl, byte [esi + eax + 4]
xor dl, cl
mov cl, byte [eax + 0x56a345]
mov byte [eax + 0x56a344], dl
mov dl, byte [esi + eax + 5]
xor cl, dl
mov byte [eax + 0x56a345], cl
add eax, 6
cmp eax, 0x30
jl 0x4d4520
push 0x56a340
push ebx
call fcn.004d4400
add esp, 8
xor eax, eax
jmp 0x4d45b0
movsx ecx, byte [eax + 0x549010]
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x549011]
mov byte [eax + 0x5697c8], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x549012]
mov byte [eax + 0x5697c9], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x549013]
mov byte [eax + 0x5697ca], dl
mov dl, byte [ecx + ebx - 1]
mov byte [eax + 0x5697cb], dl
add eax, 4
cmp eax, 0x20
jl 0x4d45b0
mov edi, ebx
mov ecx, 8
mov esi, 0x5697c8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4d5910
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x561be8]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
push eax
push ecx
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004d5780
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004d5840
mov ecx, dword [esp + 0x6c]
call fcn.004a2d97
add esp, 0x70
ret
Function at 0x4dce40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esi]
mov ecx, edx
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr edx, 8
xor ecx, edx
mov edx, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
push ebx
and ecx, 0xff
mov ebx, dword [edi + ecx*4]
shr edx, 8
xor edx, ebx
mov dword [esi + 8], edx
pop ebx
ret

Function at 0x4dce90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov al, byte [esi]
test al, al
je 0x4dcef7
push ebx
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [edi + eax*4]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov ebx, dword [edi + eax*4]
shr ecx, 8
xor ecx, ebx
inc esi
mov dword [edx + 8], ecx
mov al, byte [esi]
test al, al
jne 0x4dceb0
pop ebx
pop esi
ret