joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5056c3
Capabilities:
Encode data using xor

Disassembly:
inc ebx
insd dword es:[edi], dx
add byte [eax], al
add byte [eax - 0x32], ah
push eax
dec edi
mov byte [edx], 0x5a
test byte [ecx], al
cmp bl, 0xef
add byte [ebx + 0x51f06f69], cl
invalid
rcr byte [edx + 0x59], 0x54
push ebx
add cl, byte [eax + 0x4f50ceff]
mov byte [edx], 0x5a
test byte [ecx], al
inc esp
sti
out dx, eax
add byte [ebx + 0x39da8bf1], cl
xchg dword [eax + 0x54], edx
inc esp
imul edx, ebx, 0x4f2a505c
rol byte [edi + edx*8], 0xc1
jo 0x505687
shl byte [ecx - 0x39], cl
call 0x1404bdf
test esi, esi
jge 0x50570f
mov ecx, dword [0xf8430a1c]
jmp dword [ecx + 0x41a9bc75]
mov word [edi + 0xc], es
push bp
or al, ch
inc ebp
dec esp
add al, al
cmp dword [edi + 0xc], 0
jne 0x505733
push esp
dec edi
add dh, al
ja 0x505789
test byte [ecx], al
invalid

Function at 0x527c82
Capabilities:
Encode data using xor

Disassembly:
cmp edi, 0xffffff8d
inc ebp
pop edx
pop ecx
pop ecx
mov dword fs:[ebx], edi
fdivr dword [ebp + 0x29]
sub byte [ebx + 0x55c033f8], cl
inc ebp
or byte [ebx + 0x33d88b17], cl
test byte [ebx - 0x3ca4a140], 0x81
imul ebp, dword [edi - 0x28], 0x8300e18c
cmp byte [edx], dl
dec ebp
dec esi
pop ds
xchg ecx, eax
Function at 0x59f59e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0x3c
xor edx, edx
push ebp
push 0x59e802
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [eax + 4]
mov edx, ecx
add ecx, dword [edx + 0x3c]
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
sub ecx, 4
cmp ecx, dword [edx + 0x3c]
jl 0x59f5d9
cmp word [edx], 0x5a4d
jne 0x59f5d9
mov eax, dword [eax + 0x10]
cmp dword [eax], 0x4550
je 0x59f5fa
lea edx, [ebp - 4]
mov eax, 0x59cfc4
call fcn.0040bc3a
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41a32c]
call fcn.00426782
call fcn.0040731e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59e809
lea eax, [ebp - 4]
call fcn.00407c42
ret

Function at 0x5a595a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x7067c8], 0
jne 0x5a5971
call 0x3b3a16
mov eax, edi
dec eax
test eax, eax
jl 0x5a5999
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7063c8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5a597b
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x5a70d2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xe0fcfbfc
mov ebx, edx
mov ebp, eax
cmp ebx, 0x10
jne 0x5a70ea
mov ebx, 0x3c000008
mov eax, esp
xor ecx, ecx
mov edx, 0xe83c0404
call fcn.00405a3e
mov word [esp], 0x300
mov ecx, ebx
mov ax, 1
shl ax, cl
mov word [esp + 2], ax
movzx esi, ax
dec esi
test esi, esi
jl 0x5a714d
inc esi
xor esp, eax
lea ebx, [esp + 4]
movzx eax, word [esp + 2]
dec eax
push eax
push 0xff
push edi
call fcn.0040f8fe
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + eax + 0x13d]
mov byte [ebx], al
movzx eax, byte [ebx]
mov byte [ebx + 1], al
movzx eax, byte [ebx]
mov byte [ebx + 2], al
inc edi
add ebx, 4
dec esi
jne 0x5a711b
mov eax, esp
push eax
call fcn.0040fab6
add esp, 0xe83c0404
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5a77b2
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xe0fcfbf4
mov edi, dword [eax + 0x14]
movzx eax, byte [edi + 0x461]
test al, al
je 0x5a77d2
cmp al, 4
jne 0x5a7864
movzx ecx, byte [edi + 0x32]
mov ax, 1
shl ax, cl
mov word [esp], ax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0xe83c0404
call fcn.00405a3e
mov word [esp + 8], 0x300
movzx eax, word [esp]
mov word [esp + 0xa], ax
movzx ebp, word [esp]
dec ebp
test ebp, ebp
jl 0x5a7851
inc ebp
mov dword [esp + 4], 0
lea esi, [esp + 0xc]
mov ebx, esi
movzx eax, word [esp]
dec eax
push eax
push 0xff
mov eax, dword [esp + 0xc]
push eax
call fcn.0040f8fe
mov edx, dword [edi + 0xc]
movzx eax, byte [edx + eax + 0x13d]
mov byte [ebx], al
movzx eax, byte [ebx]
mov byte [ebx + 1], al
movzx eax, byte [ebx]
mov byte [ebx + 2], al
loopne 0x5a788d
and al, 4
add esi, 4
dec ebp
jne 0x5a7817
lea eax, [esp + 8]
push eax
call fcn.0040fab6
mov edx, dword [edi + 0xc]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
add esp, 0xe83c040c
pop ebp
pop edi
pop esi
pop ebx
ret
fimul dword [ecx + 0x758bfc45]
or al, 0x33
rcl byte [ebp + 0x68], 0xc4
insb byte es:[edi], dx
pop edx
add byte [edi + edi*8 + 0x30], ah

Function at 0x5a866a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja 0x5a87b5
jmp dword [ecx*4 + 0x5a788f]
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x5a884d
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005a7872
test eax, eax
je 0x5a884d
mov eax, ebx
call fcn.005a8856
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5a87e6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5a8856
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5a8887
dec al
je 0x5a88c2
dec al
je 0x5a8907
dec al
je 0x5a8970
jmp 0x5a89fa
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5a89fa
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5a8897
jmp 0x5a89fa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a89fa
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5a88d2
jmp 0x5a89fa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a89fa
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5a8936
xor ebp, ebp
jmp 0x5a8946
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5a894f
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5a8917
jmp 0x5a89fa
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a89fa
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5a89c9
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.005a59a2
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5a8984
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5cd02a
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5cd058
mov eax, ebx
call fcn.005cdae6
cmp dword [ebx + 0x40], 0
je 0x5cd051
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5cd0c9
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5cd0bb
cmp dword [ebx + 8], 0
je 0x5cd07a
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5cd08c
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5cd0bb
cmp dword [ebx + 8], 0
je 0x5cd06d
cmp eax, 3
je 0x5cd09f
dec eax
jne 0x5cd06d
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5cd06d
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5cd06d
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5cd0e7
cmp dword [ebx + 0x14], 0xcc
je 0x5cd0e7
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005cd0f2
pop ebx
ret
Function at 0x7a3548
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a3552
pushal
call 0x7a3558
pop ebp
sub ebp, 0x10
sub ebp, 0x3a3548
jmp 0x7a356e
mov eax, 0x3a3548
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f1
mov edx, 0x854c9709
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a3585
jmp 0x7a3598
add ah, 0x82
xor byte [0x88090909], 0xc8
int1
or dword [ecx], ecx
or dword [edx], ecx
les esi, [ecx + 0x9090919]
mov bl, 0x21
or dword [ecx], ecx
or esi, edi
jmp 0x7a35bf
pop ecx
popal
jmp 0x61833d6a
Function at 0x1023205
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 2
push edi
push edi
push edi
push 0x1002698
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x102328c
push dword [ebp + 0xc]
push 0x1002670
push edi
push dword [ebp - 4]
call fcn.01024e70
mov esi, eax
cmp esi, edi
jl 0x1023281
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1002688
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x1023273
xor esi, esi
jmp 0x1023281
jle 0x102327f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102329a
jle 0x1023298
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1024759
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x102480a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x102480a
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1024801
xor ebx, ebx
lea eax, [ebp + 0x10]
push eax
cmp dword [ebp + 0x14], ebx
je 0x10247d9
lea eax, [ebp - 8]
push eax
push 0x10024e0
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024801
cmp dword [ebp + 0x10], ebx
je 0x1024801
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x10247ff
lea eax, [ebp - 0xc]
push eax
push 0x10027cc
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024801
cmp dword [ebp + 0x10], ebx
je 0x1024801
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [esi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10248b1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x218]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002840
push 0x80000002
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10249eb
push edi
push 4
pop edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
mov esi, 0x1002800
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10249de
push esi
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x10249de
lea eax, [ebp - 0x20c]
push eax
call fcn.01024850
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x10249de
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov esi, 0x1002818
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10249de
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x10249de
lea eax, [ebp - 0x20c]
push eax
call fcn.01024850
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop esi
xor ecx, ebp
pop ebx
call fcn.01023ead
leave
ret 4

Function at 0x1024a06
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1028370], 0xffffffff
jne 0x1024a78
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10028c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1024a78
and dword [0x1028370], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x10028a4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1024a6f
mov eax, 0x600
cmp word [ebp - 0xc], ax
sbb eax, eax
inc eax
mov dword [0x1028370], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1028370]
leave
ret
Function at 0x1024af3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x1002840
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1024b8d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1002888
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1024b81
test esi, esi
je 0x1024b81
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01024a84
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x20c], ax
pop esi
setne al
xor ecx, ebp
call fcn.01023ead
leave
ret 8

Function at 0x1024bad
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x41c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call fcn.01024af3
test eax, eax
je 0x1024c92
lea eax, [ebp - 0x20c]
push eax
call fcn.010248b1
test eax, eax
je 0x1024c92
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024af3
test eax, eax
je 0x1024c92
push ebx
push 0x1002818
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024d75
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x418], eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x1001420
push dword [ebp - 0x41c]
push 0x1002830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [ebp - 0x418], 0xffffffff
je 0x1024c91
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01023ead
leave
ret 4
Function at 0x102611f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x10286f4], esi
jne 0x1026177
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x101f5e0
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1026177
push esi
push esi
push esi
push esi
push 0x101f59c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [0x10286f4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [0x10286f4], 1
pop esi
sete al
leave
ret

Function at 0x102618b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x10286f8], esi
jne 0x102620c
call fcn.0102611f
test eax, eax
je 0x1026202
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x101f5e0
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102620c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x101f5c0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10261f7
cmp dword [ebp - 8], esi
sete al
inc eax
mov dword [0x10286f8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102620c
mov dword [0x10286f8], 2
xor eax, eax
cmp dword [0x10286f8], 1
pop esi
sete al
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x5a1072e0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x566f13d7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb9c
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 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
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 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
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 0x41cbc4
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 0x41e0b0
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x144156f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
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 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
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 0x1441576
ret