joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408021
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffbc
push 0x40ffb4
push str.FlsGetValue
push 0x21
call fcn.00407ede
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408058
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408060
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffc4
push 0x40ffbc
push str.FlsSetValue
push 0x22
call fcn.00407ede
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40809a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cdf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ce1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ce1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
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
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap force flags

Disassembly:
mov eax, 0x1000dfe6
call fcn.1000de30
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push fcn.1000c276
push 0x1000c265
push 5
lea eax, [esi + 0xf0]
push 0x14
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000f270
call fcn.1000dda0
xor edi, edi
lea ecx, [esi + 0x154]
mov dword [ebp - 4], edi
call fcn.1000bf0d
lea ecx, [esi + 0x164]
mov byte [ebp - 4], 1
call fcn.1000bf61
mov dword [esi], 0x1000f21c
mov dword [esi + 0x6dc], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], 0x10
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push 0x14
lea eax, [esi + 0xdc]
mov dword [esi + 0x24], edi
push edi
mov dword [esi + 0x28], edi
push eax
mov dword [ebp - 0x28], 0xc6cd2d3c
mov dword [ebp - 0x24], 0xc3d3f6bc
mov dword [ebp - 0x20], 0xfcbcedc8
mov dword [ebp - 0x1c], 0xe4caccc5
mov dword [ebp - 0x18], 0xdcc3ebc8
mov dword [ebp - 0x14], 0xebc2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0x17c], 1
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], edi
mov dword [esi + 0x18c], edi
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x190], edi
mov dword [esi + 0x3b8], edi
call sub.MSVCRT.dll_memset
lea ebx, [esi + 0x4c]
push 0x64
push edi
push ebx
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x28]
push 0x18
push eax
push ebx
call sub.MSVCRT.dll_memcpy
push 0x208
lea eax, [esi + 0x1a8]
push edi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [esi + 0x3bc]
push edi
push eax
mov dword [esi + 0x3b0], edi
mov dword [esi + 0x3b4], edi
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1a4], edi
mov dword [esi + 0xb4], edi
call sub.MSVCRT.dll_memset
mov ebx, 0x104
lea eax, [esi + 0x3d0]
push ebx
push edi
push eax
mov dword [esi + 0x3cc], edi
call sub.MSVCRT.dll_memset
add esp, 0x48
lea eax, [esi + 0x5d8]
push ebx
push edi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x6e0], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000827d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1000e164
call fcn.1000de30
push ecx
push esi
push edi
mov esi, ecx
push fcn.1000c276
push 0x1000c265
push 5
lea eax, [esi + 0x48]
push 0x14
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000f314
call fcn.1000dda0
xor edi, edi
lea ecx, [esi + 0xac]
mov dword [ebp - 4], edi
call fcn.1000bf0d
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 1
call fcn.1000bf61
push 0x14
lea eax, [esi + 0x34]
push edi
push eax
mov dword [esi], 0x1000f2dc
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x240], edi
mov dword [esi + 0x248], edi
mov dword [esi + 0x24c], edi
mov dword [esi + 0x250], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi + 0x254], edi
mov dword [esi + 0x258], edi
mov dword [esi + 0x244], edi
mov dword [esi + 0x25c], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x260], edi
mov dword [esi + 0x1c], edi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x36c], edi
mov dword [esi + 0x368], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1000bd21
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1000bd2f
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
push edi
not eax
mov edx, 0xff
jl 0x1000be19
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [ecx]
mov esi, eax
and esi, edx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1000f348]
xor eax, ebx
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000f348]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000f348]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000f348]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000f348]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000f348]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000f348]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1000f348]
xor eax, esi
inc ecx
dec edi
jne 0x1000bd57
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1000be36
movzx ebx, byte [ecx]
mov edi, eax
and edi, edx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x1000f348]
xor eax, edi
inc ecx
dec esi
jne 0x1000be1d
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1000ccbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f778
push 0x1000de5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push 1
pop edi
push edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000cd25
mov dword [ebp - 0x20], esi
cmp word [esi], 0x5a4d
jne 0x1000cd25
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
jne 0x1000cd25
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
jmp 0x1000cd29
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x856058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008561a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85606a
add dl, dl
jne 0x856089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8560dc
xor eax, eax
add dl, dl
jne 0x856096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85617d
add dl, dl
jne 0x8560a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8560d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x856075
mov eax, 1
add dl, dl
jne 0x8560ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8560f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8560e1
sub eax, ebx
mov ebx, 1
jne 0x856128
mov ecx, 1
add dl, dl
jne 0x85610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x856119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x856105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x856136
cmp eax, 0x7d00
jae 0x85616d
cmp eax, 0x500
jb 0x856168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
cmp eax, 0x7f
ja 0x856170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x856075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85619e
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 0x856075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x103b0c74
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103b0c7e
pushal
call 0x103b0c84
pop ebp
sub ebp, 0x10
sub ebp, 0x3b0c74
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103b0ca8
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103b0cb1
mov eax, 0x3b0c74
add eax, ebp
add eax, 0x63
mov ecx, 0x60f
mov edx, 0xbff79ff3
xor byte [eax], dl
inc eax
dec ecx
jne 0x103b0cc8
jmp 0x103b0cdb
js 0x103b0d1b
js 0x103b0d59
iretd
dec ebx
div ebx
dec ecx
fcomi st(3)
add al, 0x11
invalid
xlatb
wait
cmc
pushal
sub al, 0x4c
sbb esi, esi
sbb bl, ch
sbb bl, ch
repe cmpsb byte [esi], byte es:[edi]
js 0x103b0d4d
js 0x103b0da6
sti
js 0x103b0d9c
push ebx
js 0x103b0dba
jecxz 0x103b0d31
xor bl, byte [edx]
int1
ret 0x70f1
or al, 0xc
js 0x103b0d30
xlatb
jle 0x103b0ceb
xlatb
div dword [ecx]
push ebx
js 0x103b0dda
xlatb
div ebx
wait
dec dword [ecx - 0x6a640c03]
popal
fcompi st(3)
invalid
sbb bh, byte [eax - 0x590c0c0f]
js 0x103b0d9a
or al, 0x86
dec dword [esi + eax*4]
sti
sbb ecx, dword [ebp + 0x78f3f3f3]
dec esi
sti
jb 0x103b0d90
jg 0x103b0d1f
sbb ax, 0x272
jg 0x103b0d25
sbb ax, 0x3ac0
jb 0x103b0d9d
cmp dword [esi + 0x4b], eax
inc esi
dec ebx
jb 0x103b0da3
cmp dword [esi + 0x4b], eax
inc esi
dec ebx
shl byte fs:[ecx], 0x70
shl byte [ecx], 0x70
sbb esi, esi
mov ebx, 0xf3bd77fc
idiv byte [ebx - 0xc428804]
cld
jnp 0x103b0d70
xchg ebp, eax
js 0x103b0daa
out dx, eax
retf 0x873
sbb bh, byte [edi]
or al, 0xc
or al, 0xda
mov edi, 0x3270f2ca
div byte [eax + 0x1b]
neg dword [edx]
dec esi
or al, 0xc
or al, 0xda
cmpsd dword [esi], dword es:[edi]
retf 0x70f1
Function at 0x6d00396e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d0070c0]
jne 0x6d003978
repz ret
jmp fcn.6d003f95

Function at 0x6d004444
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x6d004453
pop dword [ebp - 0x2c]
mov eax, 0x6d004453
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x272eb84f
sub dword [ebp - 0x3c], 0xd8dc7304
mov dword [ebp - 0x38], 0x6f709ed2
sub dword [ebp - 0x38], 0x3d3d528d
mov dword [ebp - 0x34], 0x1916fcbd
sub dword [ebp - 0x34], 0xcccab88f
mov dword [ebp - 0x30], 0x7ea02db
sub dword [ebp - 0x30], 0x7ea02db
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x164652c6
add dword [ebp - 0x3c], 0x5e2c1690
mov dword [ebp - 0x38], 0xc41f684c
sub dword [ebp - 0x38], 0x82b306d7
mov dword [ebp - 0x34], 0xa556336c
sub dword [ebp - 0x34], 0x41e6c700
mov dword [ebp - 0x30], 0x21312ec0
sub dword [ebp - 0x30], 0x21312ec0
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc737e6d3
add eax, 0xa5c8694d
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x34994
push 0
call eax
mov ecx, 0x3f46
xor edi, edi
add edi, eax
mov ebx, 0x4f83ec22
add ebx, 0x1d7cc9de
add ebx, dword [ebp - 0x2c]
mov edx, 0x7d74699c
sub dword [ebp - 0x28], 0x766edcb4
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x20], 0x77cb2c47
mov dword [edi], esi
sub dword [ebp - 0x1c], 0x3f79a41a
add edi, 4
add ebx, 0xf3c493c0
add ebx, 0xc3b6c44
loop 0x6d004561
add eax, 0xefeb
mov ebx, eax
add eax, 0x47c20604
sub eax, 0x47c205ff
mov ecx, 0x7dbf60e4
add ecx, 0xef409f1c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x871058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8711a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87106a
add dl, dl
jne 0x871089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8710dc
xor eax, eax
add dl, dl
jne 0x871096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87117d
add dl, dl
jne 0x8710a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8710b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8710bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8710c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8710d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x871075
mov eax, 1
add dl, dl
jne 0x8710ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8710f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8710e1
sub eax, ebx
mov ebx, 1
jne 0x871128
mov ecx, 1
add dl, dl
jne 0x87110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x871119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x871105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x871075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x871136
cmp eax, 0x7d00
jae 0x87116d
cmp eax, 0x500
jb 0x871168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x871075
cmp eax, 0x7f
ja 0x871170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x871075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87119e
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 0x871075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401443
pop dword [ebp - 0x48]
mov eax, 0x808d5fe
add eax, 0xf8373e45
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x423a2b15
sub dword [ebp - 0x58], 0xf3e7e5ca
mov dword [ebp - 0x54], 0xe1663268
sub dword [ebp - 0x54], 0xaf32e623
mov dword [ebp - 0x50], 0xc24bd346
sub dword [ebp - 0x50], 0x75ff8f18
mov dword [ebp - 0x4c], 0x9d92144f
sub dword [ebp - 0x4c], 0x9d92144f
lea eax, [ebp - 0x58]
push eax
mov eax, 0xb5d1701a
sub eax, 0xb590ef16
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x98f05d61
sub dword [ebp - 0x58], 0x247df40b
mov dword [ebp - 0x54], 0x81724a3a
sub dword [ebp - 0x54], 0x4005e8c5
mov dword [ebp - 0x50], 0x44739d41
sub dword [ebp - 0x50], 0xe10430d5
mov dword [ebp - 0x4c], 0x2e4ce868
sub dword [ebp - 0x4c], 0x2e4ce868
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x91eb6f52
sub eax, 0x91aaee52
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38672
push 0
call eax
mov ecx, 0x4873
mov ebx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x48]
mov edi, 0xe2081ae
add edi, 0xe1749936
add dword [ebp - 0x34], 0x7a7185d5
mov edx, dword [esi]
add edx, edi
sub dword [ebp - 0x34], esi
mov dword [ebx], edx
xor dword [ebp - 4], edi
add ebx, 4
add esi, 4
loop 0x401559
add eax, 0xd5afafa1
add eax, 0x2a5164fe
mov ebx, eax
add eax, 5
mov ecx, 0xebf9f21d
add ecx, 0x14460de3
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0xd43648
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0xd45cc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0xd451a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00d440f8
test esi, esi
je 0xd45d1a
mov eax, esi
and eax, 0xf
cdq
xor eax, edx
sub eax, edx
mov dl, byte [eax + 0xd610ac]
lea eax, [ebp - 4]
call fcn.00d442e0
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov eax, ebx
call fcn.00d443a4
shr esi, 4
test esi, esi
jne 0xd45cef
cmp dword [ebx], 0
jne 0xd45d3c
jmp 0xd45d2f
mov ecx, dword [ebx]
mov eax, ebx
mov edx, 0xd451b8
call fcn.00d443a4
mov eax, dword [ebx]
call fcn.00d44358
cmp edi, eax
jg 0xd45d21
jmp 0xd45d8d
mov eax, dword [ebx]
call fcn.00d44358
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x2d
jne 0xd45d82
mov eax, dword [ebx]
call fcn.00d44358
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00d445f8
mov edx, ebx
mov ecx, 1
mov eax, 0xd451c4
call fcn.00d44640
jmp 0xd45d82
mov ecx, dword [ebx]
mov eax, ebx
mov edx, 0xd451b8
call fcn.00d443a4
mov eax, dword [ebx]
call fcn.00d44358
cmp edi, eax
jg 0xd45d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd451aa
lea eax, [ebp - 4]
call fcn.00d440f8
ret

Function at 0xd54a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0xd53f6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00d440f8
test esi, esi
je 0xd54ae2
mov eax, esi
and eax, 0xf
cdq
xor eax, edx
sub eax, edx
mov dl, byte [eax + 0xd6128c]
lea eax, [ebp - 4]
call fcn.00d442e0
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov eax, ebx
call fcn.00d443a4
shr esi, 4
test esi, esi
jne 0xd54ab7
cmp dword [ebx], 0
jne 0xd54b04
jmp 0xd54af7
mov ecx, dword [ebx]
mov eax, ebx
mov edx, 0xd53f80
call fcn.00d443a4
mov eax, dword [ebx]
call fcn.00d44358
cmp edi, eax
jg 0xd54ae9
jmp 0xd54b55
mov eax, dword [ebx]
call fcn.00d44358
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x2d
jne 0xd54b4a
mov eax, dword [ebx]
call fcn.00d44358
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00d445f8
mov edx, ebx
mov ecx, 1
mov eax, 0xd53f8c
call fcn.00d44640
jmp 0xd54b4a
mov ecx, dword [ebx]
mov eax, ebx
mov edx, 0xd53f80
call fcn.00d443a4
mov eax, dword [ebx]
call fcn.00d44358
cmp edi, eax
jg 0xd54b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd53f72
lea eax, [ebp - 4]
call fcn.00d440f8
ret
Function at 0xd568c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00d56944
jae 0xd568cf
xor ecx, ecx
call fcn.00d56944
jae 0xd568fe
xor eax, eax
call fcn.00d56944
jae 0xd5690e
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00d56944
adc al, al
jae 0xd568f0
jne 0xd5693a
stosb byte es:[edi], al
jmp 0xd568d2
call fcn.00d56950
sub ecx, ebx
jne 0xd56917
call fcn.00d5694e
jmp 0xd56936
lodsb al, byte [esi]
shr eax, 1
je 0xd56960
adc ecx, ecx
jmp 0xd56933
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00d5694e
cmp eax, 0x7d00
jae 0xd56933
cmp ah, 5
jae 0xd56934
cmp eax, 0x7f
ja 0xd56935
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd568d2
popal
pop ebp
ret 8