joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405775
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
and byte [ebp - 0x24], 0
and byte [ebp - 0x14], 0
push esi
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push edi
mov byte [ebp - 0x30], 0x4b
mov byte [ebp - 0x2f], 0x45
mov byte [ebp - 0x2e], 0x52
mov byte [ebp - 0x2d], 0x4e
mov byte [ebp - 0x2c], 0x45
mov byte [ebp - 0x2b], 0x4c
mov byte [ebp - 0x2a], 0x33
mov byte [ebp - 0x29], 0x32
mov byte [ebp - 0x28], 0x2e
mov byte [ebp - 0x27], 0x64
mov byte [ebp - 0x26], 0x6c
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x20], 0x56
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x63
call fcn.004052b3
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
add esp, 0xc
mov dword [ebp - 4], edi
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], di
lea esi, [ecx + eax + 0x18]
jbe 0x40588a
add esi, 0x10
mov edi, 0x1000
mov eax, dword [esi]
test eax, eax
jne 0x405851
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x405879
push 4
push edi
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
push dword [ebp - 0x10]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
jmp 0x405876
push 4
push edi
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
push dword [esi]
mov ebx, eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov dword [esi - 8], ebx
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x405820
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40588f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x38], 0x4b
mov byte [ebp - 0x37], 0x45
mov byte [ebp - 0x36], 0x52
mov byte [ebp - 0x35], 0x4e
mov byte [ebp - 0x34], 0x45
mov byte [ebp - 0x33], 0x4c
mov byte [ebp - 0x32], 0x33
mov byte [ebp - 0x31], 0x32
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0x64
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x6c
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x28], 0x56
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x46
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], bl
call fcn.004052b3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
mov byte [ebp - 0x48], 0x56
mov byte [ebp - 0x47], 0x69
mov byte [ebp - 0x46], 0x72
mov byte [ebp - 0x45], 0x74
mov byte [ebp - 0x44], 0x75
mov byte [ebp - 0x43], 0x61
mov byte [ebp - 0x42], 0x6c
mov byte [ebp - 0x41], 0x50
mov byte [ebp - 0x40], 0x72
mov byte [ebp - 0x3f], 0x6f
mov byte [ebp - 0x3e], 0x74
mov byte [ebp - 0x3d], 0x65
mov byte [ebp - 0x3c], 0x63
mov byte [ebp - 0x3b], 0x74
mov byte [ebp - 0x3a], bl
call fcn.004052b3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [ebp - 0xc], ebx
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], bx
lea ecx, [ecx + eax + 0x18]
jbe 0x405a18
add ecx, 0x24
push esi
mov dword [ebp - 8], ecx
push edi
mov esi, dword [ecx]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
shr esi, 0x1d
shr edi, 0x1e
and esi, 1
and edi, 1
shr edx, 0x1f
test byte [ebp - 1], 2
mov dword [ebp - 0x14], edx
je 0x4059af
push 0x4000
push dword [ecx - 0x14]
push dword [ecx - 0x1c]
call dword [ebp - 0x10]
jmp 0x4059f8
test byte [ebp - 1], 4
lea edx, [edi + esi*2]
mov esi, dword [ebp - 0x14]
lea edx, [esi + edx*2]
mov edi, dword [edx*4 + 0x45d0b8]
je 0x4059cb
or edi, 0x200
mov esi, dword [ecx - 0x14]
mov edx, esi
cmp edx, ebx
jne 0x4059ea
test byte [ebp - 4], 0x40
je 0x4059df
mov edx, dword [eax + 0x20]
jmp 0x4059e8
test byte [ebp - 4], 0x80
je 0x4059fb
mov edx, dword [eax + 0x24]
cmp edx, ebx
jbe 0x4059fb
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push dword [ecx - 0x1c]
call dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
add ecx, 0x28
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx edx, word [eax + 6]
cmp dword [ebp - 0xc], edx
jl 0x40597c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a95
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
and byte [ebp - 0x18], 0
and byte [ebp - 0x28], 0
push esi
lea eax, [ebp - 0x34]
push edi
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x24], 0x4b
mov byte [ebp - 0x23], 0x45
mov byte [ebp - 0x22], 0x52
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x34], 0x49
mov byte [ebp - 0x33], 0x73
mov byte [ebp - 0x32], 0x42
mov byte [ebp - 0x31], 0x61
mov byte [ebp - 0x30], 0x64
mov byte [ebp - 0x2f], 0x52
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x61
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x50
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x72
call fcn.004052b3
mov dword [ebp - 0x10], eax
and byte [ebp - 0x38], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x44], 0x4c
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov byte [ebp - 0x43], 0x6f
mov byte [ebp - 0x42], 0x61
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x4c
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x62
mov byte [ebp - 0x3d], 0x72
mov byte [ebp - 0x3c], 0x61
mov byte [ebp - 0x3b], 0x72
mov byte [ebp - 0x3a], 0x79
mov byte [ebp - 0x39], 0x41
call fcn.004052b3
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
add esp, 0x18
mov dword [ebp - 4], 1
mov eax, dword [esi]
mov edi, dword [esi + 4]
add eax, 0x80
mov dword [ebp - 8], edi
cmp dword [eax + 4], ebx
jbe 0x405c51
mov ebx, dword [eax]
push 0x14
add ebx, edi
push ebx
call dword [ebp - 0x10]
test eax, eax
jne 0x405c51
jmp 0x405b97
mov edi, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x405c51
add eax, edi
push eax
call dword [ebp - 0x14]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x405c4d
mov eax, dword [esi + 0xc]
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call fcn.0040536e
pop ecx
mov dword [esi + 8], eax
test eax, eax
pop ecx
je 0x405c4d
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], edx
inc dword [esi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x405bef
add eax, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x405c25
mov eax, dword [ebx + 0x10]
add edi, eax
mov dword [ebp + 8], edi
jmp 0x405c25
jns 0x405c02
and eax, 0xffff
jmp 0x405c0a
mov ecx, dword [ebp - 8]
add eax, ecx
add eax, 2
push eax
push 0
push dword [ebp - 0xc]
call fcn.004052b3
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x405c30
add dword [ebp + 8], 4
add edi, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x405bf9
jmp 0x405c34
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x405c51
add ebx, 0x14
push 0x14
push ebx
call dword [ebp - 0x10]
test eax, eax
je 0x405b94
jmp 0x405c51
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ce2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x44], 0x4b
mov byte [ebp - 0x43], 0x45
mov byte [ebp - 0x42], 0x52
mov byte [ebp - 0x41], 0x4e
mov byte [ebp - 0x40], 0x45
mov byte [ebp - 0x3f], 0x4c
mov byte [ebp - 0x3e], 0x33
mov byte [ebp - 0x3d], 0x32
mov byte [ebp - 0x3c], 0x2e
mov byte [ebp - 0x3b], 0x64
mov byte [ebp - 0x3a], 0x6c
mov byte [ebp - 0x39], 0x6c
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x28], 0x46
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x62
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x79
mov byte [ebp - 0x1d], bl
call fcn.004052b3
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x46
mov byte [ebp - 0x2c], 0x72
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x65
mov byte [ebp - 0x29], bl
call fcn.004052b3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x54], 0x47
mov byte [ebp - 0x53], 0x65
mov byte [ebp - 0x52], 0x74
mov byte [ebp - 0x51], 0x50
mov byte [ebp - 0x50], 0x72
mov byte [ebp - 0x4f], 0x6f
mov byte [ebp - 0x4e], 0x63
mov byte [ebp - 0x4d], 0x65
mov byte [ebp - 0x4c], 0x73
mov byte [ebp - 0x4b], 0x73
mov byte [ebp - 0x4a], 0x48
mov byte [ebp - 0x49], 0x65
mov byte [ebp - 0x48], 0x61
mov byte [ebp - 0x47], 0x70
mov byte [ebp - 0x46], bl
call fcn.004052b3
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x1c], 0x48
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x70
mov byte [ebp - 0x18], 0x46
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0x72
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], bl
call fcn.004052b3
mov esi, dword [ebp + 8]
add esp, 0x30
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x405e86
cmp dword [esi + 0x10], ebx
je 0x405e40
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ebx
push ebx
mov ecx, dword [ecx + 0x28]
push eax
add ecx, eax
call ecx
mov dword [esi + 0x10], ebx
cmp dword [esi + 8], ebx
je 0x405e6c
push edi
xor edi, edi
cmp dword [esi + 0xc], ebx
jle 0x405e62
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x405e5c
push eax
call dword [ebp - 4]
inc edi
cmp edi, dword [esi + 0xc]
jl 0x405e4d
push dword [esi + 8]
call fcn.00405490
pop ecx
pop edi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405e7d
push 0x8000
push ebx
push eax
call dword [ebp - 8]
push esi
push ebx
call dword [ebp - 0xc]
push eax
call dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x4068f6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4099dc
call fcn.004090d0
sub esp, 0x10
push esi
mov esi, ecx
mov dword [esi + 0xc], 0x15
call fcn.004069f7
push 0x70
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x40692e
call fcn.00402964
jmp 0x406930
xor eax, eax
push dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x24], eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 4]
call fcn.004029f6
push 0x2c
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x406969
call fcn.00401000
jmp 0x40696b
xor eax, eax
push dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x28], eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 4]
call fcn.0040102c
push dword [esi + 0x28]
lea eax, [ebp - 0x1c]
mov ecx, esi
push dword [esi + 0x24]
push eax
call fcn.00406d0c
mov ecx, dword [eax + 4]
mov dword [esi + 0x30], ecx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x34], eax
call fcn.004089b1
mov ecx, dword [esi + 0x30]
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x34]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax], 0x40a60c
call fcn.00407e17
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408656
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0x10]
cmp eax, 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
jne 0x40868f
push esi
add ecx, 4
call fcn.00404996
cmp eax, dword [ebp + 0xc]
jge 0x40870b
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x40872b
and dword [ebp - 8], 0
dec eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
jle 0x40870b
mov dword [ebp - 4], 0xff
xor esi, esi
inc esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
jl 0x4086fd
mov ebx, dword [ebp - 4]
lea edi, [ecx + 4]
mov eax, ebx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + 0x14]
mov ecx, edi
push edx
push dword [eax + esi*4]
call fcn.004049e0
xor dword [ebp - 0xc], eax
add ebx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x10]
jle 0x4086b5
cmp dword [ebp - 0xc], 0
jne 0x4086fa
push dword [ebp - 8]
mov ecx, edi
call fcn.0040498b
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor dword [ebp - 0x14], eax
dec dword [ebp - 0x10]
mov dword [esi + ecx*4], eax
je 0x408715
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
dec dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jl 0x4086a4
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
push edi
lea ecx, [eax + 4]
call fcn.00404996
cmp eax, dword [ebp + 0xc]
jge 0x40870b
mov dword [esi], edi
xor eax, eax
jmp 0x40870e
Function at 0x40872f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jle 0x408827
push ebx
push esi
add ecx, 4
push edi
mov dword [ebp - 4], ecx
mov edi, 0xff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x18], eax
call fcn.00404996
mov esi, edi
xor ebx, ebx
sub esi, eax
mov eax, dword [ebp + 0x1c]
inc ebx
mov eax, dword [eax]
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
jle 0x4087a0
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
mov ecx, edi
cdq
idiv ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push edx
push dword [eax + ebx*4]
call fcn.004049e0
xor dword [ebp - 0x14], eax
add dword [ebp - 0xc], esi
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x40877d
mov ebx, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 2
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
jle 0x4087e5
mov eax, dword [ebp + 0x10]
add esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
lea esi, [eax - 3]
add ebx, 0xc
shr esi, 1
inc esi
mov eax, dword [ebp - 0xc]
mov ecx, edi
cdq
idiv ecx
mov ecx, dword [ebp - 4]
push edx
push dword [ebx]
call fcn.004049e0
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
add ebx, 8
dec esi
jne 0x4087c3
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.004049a4
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
lea esi, [eax + ecx]
mov ecx, dword [ebp - 4]
call fcn.004049fa
mov ecx, dword [ebp - 4]
push eax
push dword [ebp - 0x18]
call fcn.004049b7
xor byte [esi], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x408751
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x8ccbcb
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
mov esi, dword [esp]
add esp, 4
add edi, ebx
call fcn.008ccbf6
inc edi
xor dword [edx], esi
add ebx, ebx
inc edx
add edi, 0x11eb8c8c
cmp edx, eax
jne fcn.008ccbcb
and edi, ebx
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x44854a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448551
ret