joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6215f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov dword [ebx + 0x48], 0x67452301
mov dword [ebx + 0x4c], 0xefcdab89
mov dword [ebx + 0x50], 0x98badcfe
mov dword [ebx + 0x54], 0x10325476
mov dword [ebx + 0x40], esi
cmp esi, 0x40
jl 0x621635
mov edx, edi
lea eax, [ebx + 0x48]
call fcn.00620f7c
add edi, 0x40
sub esi, 0x40
cmp esi, 0x40
jge 0x621620
mov edx, ebx
mov eax, edi
mov edi, dword [0x68ef14]
mov edi, dword [edi]
mov ecx, esi
call edi
mov edi, ebx
add edi, esi
mov byte [edi], 0x80
inc edi
mov eax, 0x37
sub eax, esi
mov esi, eax
test esi, esi
jl 0x62166c
mov eax, edi
mov edi, dword [0x68f0e0]
mov edi, dword [edi]
xor ecx, ecx
mov edx, esi
call edi
jmp 0x62169a
lea edx, [esi + 8]
mov eax, edi
mov esi, dword [0x68f0e0]
mov esi, dword [esi]
xor ecx, ecx
call esi
mov edx, ebx
lea eax, [ebx + 0x48]
call fcn.00620f7c
mov esi, dword [0x68f0e0]
mov esi, dword [esi]
mov eax, ebx
xor ecx, ecx
mov edx, 0x38
call esi
mov esi, dword [ebx + 0x40]
mov eax, esi
shl eax, 3
mov dword [ebx + 0x38], eax
shr esi, 0x1d
mov dword [ebx + 0x3c], esi
mov edx, ebx
lea eax, [ebx + 0x48]
call fcn.00620f7c
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x622870
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov ebx, dword [0x68f0e0]
mov ebx, dword [ebx]
add eax, 0x20
xor ecx, ecx
mov edx, 0x4c
call ebx
pop ebx
ret

Function at 0x622cc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], edx
mov ebx, eax
cmp byte [ebx + 0x198], 1
je 0x622cdc
mov eax, ebx
call fcn.00622c60
lea ecx, [ebx + 0x6c]
lea edx, [ebx + 0x6c]
lea eax, [ebx + 0x7c]
call dword [ebx + 0x18c]
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
lea esi, [ebx + 0x6c]
mov eax, dword [esp]
cmp eax, 4
jl 0x622d13
sub eax, 4
mov ebx, dword [ecx]
xor ebx, dword [esi]
mov dword [edx], ebx
add edx, 4
add ecx, 4
add esi, 4
cmp eax, 4
jge 0x622cfc
test eax, eax
jle 0x622d26
dec eax
movzx ebx, byte [ecx + eax]
xor bl, byte [esi + eax]
mov byte [edx + eax], bl
test eax, eax
jg 0x622d17
pop edx
pop esi
pop ebx
ret
Function at 0x622ed4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ecx, dword [eax + 0x400]
mov esi, dword [eax + 0x404]
cmp dword [ebp + 8], 3
jbe 0x622ff3
sub dword [ebp + 8], 4
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4]
lea ebx, [edx + esi]
and ebx, 0xff
mov esi, ebx
mov ebx, dword [eax + esi*4]
add ebx, edx
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
inc ecx
and ecx, 0xff
mov dword [eax + esi*4], edx
mov edx, dword [eax + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [eax + ebx*4]
mov byte [ebp - 0x10], bl
lea ebx, [edx + esi]
and ebx, 0xff
mov esi, ebx
mov ebx, dword [eax + esi*4]
add ebx, edx
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
inc ecx
and ecx, 0xff
mov dword [eax + esi*4], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [eax + edx*4]
mov byte [ebp - 0xf], dl
mov edx, dword [eax + ecx*4]
lea ebx, [edx + esi]
and ebx, 0xff
mov esi, ebx
mov ebx, dword [eax + esi*4]
add ebx, edx
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
inc ecx
and ecx, 0xff
mov dword [eax + esi*4], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [eax + edx*4]
mov byte [ebp - 0xe], dl
mov edx, dword [eax + ecx*4]
lea ebx, [edx + esi]
and ebx, 0xff
mov esi, ebx
mov ebx, dword [eax + esi*4]
add ebx, edx
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
mov dword [eax + esi*4], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [eax + edx*4]
mov byte [ebp - 0xd], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx]
xor edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov dword [ebx], edx
add dword [ebp - 4], 4
add dword [ebp - 8], 4
cmp dword [ebp + 8], 3
ja 0x622ef8
cmp dword [ebp + 8], 0
jbe 0x623045
dec dword [ebp + 8]
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4]
lea ebx, [edx + esi]
and ebx, 0xff
mov esi, ebx
mov ebx, dword [eax + esi*4]
add ebx, edx
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
mov dword [eax + esi*4], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [eax + edx*4]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx]
mov ebx, dword [ebp - 8]
mov byte [ebx], dl
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp dword [ebp + 8], 0
ja 0x622ff9
mov dword [eax + 0x400], ecx
mov dword [eax + 0x404], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x633b8c
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x633b95
mov eax, dword [ebp - 4]
add esp, 0xffffff90
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1006c], eax
mov dword [ebp - 0x10070], eax
mov dword [ebp - 0x10074], eax
mov dword [ebp - 0x10068], eax
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.004105cc
xor eax, eax
push ebp
push 0x633db0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x68eab0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetHandleInformation
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00408458
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.00408458
test esi, esi
je 0x633c4d
cmp word [esi], 0
jne 0x633c5e
lea eax, [ebp - 0x10068]
call fcn.0042778c
mov esi, dword [ebp - 0x10068]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push 0x633dcc
lea eax, [ebp - 0x10070]
mov edx, dword [ebp + 0xc]
call fcn.0040c02c
push dword [ebp - 0x10070]
push 0x633ddc
lea eax, [ebp - 0x10074]
mov edx, dword [ebp + 0x10]
call fcn.0040c02c
push dword [ebp - 0x10074]
lea eax, [ebp - 0x1006c]
mov edx, 4
call fcn.0040c2b8
mov eax, dword [ebp - 0x1006c]
call fcn.0040bfcc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x633d73
lea eax, [ebp - 0x60]
call fcn.0061a53c
lea eax, [ebp - 8]
call fcn.0061a53c
xor eax, eax
push ebp
push 0x633d63
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x633d06
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10064]
push eax
push edi
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
add esp, 0x10
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
lea eax, [ebp - 0x10064]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x633d2b
cmp dword [ebp - 0x10], 0
ja 0x633cee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x633d6a
lea eax, [ebp - 4]
call fcn.0061a53c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
lea eax, [ebp - 0x64]
call fcn.0061a53c
pop eax
jmp eax
lea eax, [ebp - 4]
call fcn.0061a53c
lea eax, [ebp - 8]
call fcn.0061a53c
call fcn.0042fc88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x633db7
lea eax, [ebp - 0x10074]
mov edx, 4
call fcn.0040b384
lea eax, [ebp + 0x18]
call fcn.00410558
pop eax
jmp eax
Function at 0x6340c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x6340ca
mov eax, dword [esp + 0x10000]
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, esp
jmp 0x6340fa
mov eax, dword [ebp]
push eax
lea eax, [esp + 8]
push eax
push ebx
mov eax, dword [edi]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
add esp, 0x10
push 0
push ebp
push 0x10000
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x634117
cmp dword [ebp], 0
ja 0x6340e5
add esp, 0x10004
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x648d50
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x648f84
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040bfcc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x648f6c
xor edx, edx
push ebp
push 0x648f65
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x648dd9
call fcn.0040aad4
jmp 0x648f6c
xor edx, edx
push ebp
push 0x648f45
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x648e10
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
xor edx, edx
push ebp
push 0x648f25
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.dbghelp.dll_ImageNtHeader
mov esi, eax
test esi, esi
jne 0x648e41
call fcn.0040aad4
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
cmp dword [esi], 0x4550
je 0x648e5d
call fcn.0040aad4
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
push 0
mov eax, dword [esi + 0x78]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.dbghelp.dll_ImageRvaToVa
mov edi, eax
test edi, edi
jne 0x648e87
call fcn.0040aad4
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
push 0
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.dbghelp.dll_ImageRvaToVa
test eax, eax
jne 0x648eaf
call fcn.0040aad4
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
push 0
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.dbghelp.dll_ImageRvaToVa
mov ebx, eax
test ebx, ebx
jne 0x648ed8
call fcn.0040aad4
call fcn.0040aad4
call fcn.0040aad4
jmp 0x648f6c
mov esi, dword [esi + 0x7c]
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x648f0c
inc eax
mov edi, eax
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040bffc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x648eff
inc ebx
dec esi
cmp byte [ebx], 0
je 0x648f08
test esi, esi
jg 0x648efd
inc ebx
dec edi
jne 0x648ee6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x648f2c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x648f8b
lea eax, [ebp - 0x14]
call fcn.0040b324
pop eax
jmp eax
Function at 0x649430
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64943a
mov eax, dword [esp + 0x10000]
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, esp
jmp 0x64946a
mov eax, dword [ebp]
push eax
lea eax, [esp + 8]
push eax
push ebx
mov eax, dword [edi]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
add esp, 0x10
push 0
push ebp
push 0x10000
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x649487
cmp dword [ebp], 0
ja 0x649455
add esp, 0x10004
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6497e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x6497e9
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6498cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
lea edx, [eax - 4]
mov ecx, 4
mov eax, ebx
call fcn.0061a4c8
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, ebx
call fcn.0061a4c8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, ebx
call fcn.0061a4c8
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.0061a454
cmp dword [ebp - 0x10], 0
jg 0x649876
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6498fd
mov esi, dword [ebp - 0x10]
test esi, esi
jle 0x6498c1
cmp esi, 0x10000
jge 0x649889
mov edi, esi
jmp 0x64988e
mov edi, 0x10000
mov ebx, edi
lea edx, [ebp - 0x10010]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.0061a454
push ebx
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
add esp, 0x10
sub esi, ebx
test esi, esi
jg 0x64987d
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6498d9
cmp byte [ebp - 9], 0
jne 0x6498fd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ebx, eax
push 0
mov eax, dword [ebx + 0x68]
push eax
call sub.kernel32.dll_TerminateProcess
push 0xffffffffffffffff
mov eax, dword [ebx + 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x65d3a4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x65d567
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetProcessTimes
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea edx, [ebp - 8]
mov eax, 0x6a0e80
call fcn.00474090
push 0x65d580
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 8]
call fcn.00473c78
mov ebx, eax
lea eax, [ebp - 8]
call fcn.00473c5c
shl eax, 3
lea eax, [eax + eax*2]
add ebx, eax
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x60], 0
lea eax, [ebp - 8]
call fcn.00473c98
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
lea eax, [ebp - 8]
call fcn.00473cb8
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
lea edx, [ebp - 0x64]
mov ecx, 2
mov eax, 0x65d59c
call fcn.00427ba4
push dword [ebp - 0x4c]
push 0x65d5d4
lea eax, [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x34]
movzx edx, word [ebp - 0x36]
dec edx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
lea edx, [ebp - 0x64]
mov ecx, 2
mov eax, 0x65d59c
call fcn.00427ba4
push dword [ebp - 0x68]
push 0x65d5f0
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.0040c2b8
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp + 8]
push dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_SetConsoleCursorPosition
lea edx, [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x6c]
call fcn.0040bfcc
mov ebx, eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x65d526
sub eax, 4
mov eax, dword [eax]
push 0
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_WriteConsoleW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65d56e
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.0040b384
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0040b384
pop eax
jmp eax
Function at 0x66edf8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b418
mov eax, dword [ebp - 8]
call fcn.0040b418
mov eax, dword [ebp - 0xc]
call fcn.0040b418
xor eax, eax
push ebp
push 0x66ef09
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00408458
mov dword [ebp - 0x54], 0x44
cmp dword [ebp - 0xc], 0
je 0x66ee5a
mov esi, dword [ebp - 0xc]
jmp 0x66ee65
lea eax, [ebp - 0x68]
call fcn.0042778c
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0x66ef24
push dword [ebp - 4]
push 0x66ef34
push dword [ebp - 8]
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.0040c2b8
mov eax, dword [ebp - 0x6c]
call fcn.0040bfcc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x66eeda
lea eax, [ebp - 0x60]
call fcn.0061a53c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
lea eax, [ebp - 0x64]
call fcn.0061a53c
cmp dword [ebp - 0x10], 0
sete bl
jmp 0x66eedf
call fcn.0042fc88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66ef10
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0040b384
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b384
pop eax
jmp eax
Function at 0x66671f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0066679e
jae 0x66672b
xor ecx, ecx
call fcn.0066679e
jae 0x666755
xor eax, eax
call fcn.0066679e
jae 0x666766
mov al, 0x10
call fcn.0066679e
adc al, al
jae 0x666747
jne 0x666793
stosb byte es:[edi], al
jmp 0x66672c
call fcn.006667aa
dec ecx
loop 0x666772
mov eax, ebp
call fcn.006667a8
jmp 0x666794
lodsb al, byte [esi]
shr eax, 1
je 0x6667ba
adc ecx, 2
mov ebp, eax
jmp 0x666794
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006667a8
cmp eax, 0x7d00
jae 0x666792
cmp eax, 0x500
jae 0x666793
cmp eax, 0x7f
ja 0x666794
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x66672c
pop ebp
ret 8
Function at 0x402a1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404098
test esi, esi
jne 0x402a52
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404188
jmp 0x402a70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402930
mov edi, eax
test esi, esi
je 0x402a70
cmp dword [ebx], 0
je 0x402a70
dec esi
jmp 0x402a59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ce4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47e008], 0x8088405
inc edx
mov dword [ebx + 0x47e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40313c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031b4
xor eax, eax
push ebp
push 0x4031ad
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 0x4031f0
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 0x4031b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x481048], 0
je 0x403ef9
cmp word [0x48121c], 0xd7b2
jne 0x403ec1
cmp dword [0x481224], 0
jbe 0x403ec1
mov eax, 0x481218
call dword [0x481234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e070
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 0x403f20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e034], 0
jne 0x403f15
push 0
push 0x47e068
push 0x47e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40404c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026f4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x481049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404014
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc