joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4552d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0xff
push edi
cmp esi, 8
jl 0x455396
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
dec edi
jne 0x4552fd
cmp esi, 4
jl 0x455407
mov edi, esi
shr edi, 2
imul eax, edi, 0xfffffffc
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
dec edi
jne 0x4553a5
jmp 0x455407
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b8ad0]
inc edx
dec esi
test esi, esi
jg 0x4553f4
pop edi
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4580e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
movzx eax, ax
push ebx
push 0x17
push eax
mov dword [ebp - 8], ecx
call fcn.004178e6
mov edi, eax
add esp, 0xc
test edi, edi
je 0x458157
mov eax, dword [ebp + 8]
push 0x17
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x458157
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x458156
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45814f
mov ecx, dword [ebp - 8]
push edi
push eax
call fcn.00458875
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458bed
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4b534d
call fcn.0049560c
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x458c0f
xor eax, eax
jmp 0x458d69
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x458c39
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x458c39
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x458d69
cmp dword [esi + 0x50], 0
je 0x458d67
mov ecx, esi
call fcn.004531fc
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x458c66
push dword [esi + 0x50]
push edi
call fcn.004050eb
test al, al
pop ecx
pop ecx
cmovne ebx, edi
jmp 0x458d67
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.00453d39
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x40]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
call dword [edi + 0x1c]
test eax, eax
js 0x458d5b
cmp eax, 1
jg 0x458d40
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x458d11
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004949dd
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x458d5b
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x45], 1
cmp dword [ebp - 0x38], eax
jne 0x458d3b
test edx, edx
jne 0x458c91
cmp dword [ebp - 0x18], 0x20
jae 0x458d5b
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00453992
jmp 0x458c8e
mov ebx, dword [ebp + 8]
jmp 0x458d5b
cmp eax, 3
jne 0x458d5b
mov eax, dword [ebp - 0x30]
push dword [eax + 0x50]
push dword [ebp - 0x2c]
call fcn.004050eb
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00453408
mov eax, ebx
call fcn.004955bb
ret 4
Function at 0x458d71
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4b534d
call fcn.0049560c
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x458d96
xor eax, eax
jmp 0x458f09
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x458dc2
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x458dc2
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x458f09
cmp dword [esi + 0x50], 0
je 0x458f06
mov ecx, esi
call fcn.0045321f
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x458df5
push dword [esi + 0x50]
push edi
call fcn.00405109
pop ecx
pop ecx
test al, al
je 0x458f06
movzx ebx, di
jmp 0x458f06
push ecx
movzx eax, di
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0xf
call fcn.00453d39
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x40]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
call dword [edi + 0x1c]
test eax, eax
js 0x458efa
cmp eax, 1
jg 0x458ed8
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x458ea0
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004949dd
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x458ed0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x46], 1
cmp dword [ebp - 0x38], eax
jne 0x458eca
test edx, edx
jne 0x458e20
cmp dword [ebp - 0x18], 0x20
jae 0x458ed3
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00453992
jmp 0x458e1d
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x458ef7
cmp eax, 3
jne 0x458efa
mov eax, dword [ebp - 0x30]
push dword [eax + 0x50]
push dword [ebp - 0x2c]
call fcn.00405109
pop ecx
pop ecx
test al, al
je 0x458ef7
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00453408
mov ax, bx
call fcn.004955bb
ret 4
Function at 0x45ed57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00495d20
mov eax, dword [0x4e6e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x2008], esi
cmp dword [ebx + 0x410], edi
je 0x45ee88
test eax, eax
je 0x45eda6
push eax
call fcn.00491c27
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x45edaa
mov eax, edi
jmp 0x45edcb
lea esi, [eax + eax]
mov eax, esi
call fcn.00495c60
mov eax, esp
push 3
push esi
push dword [ebp - 0x2010]
push eax
call fcn.00418030
mov esi, dword [ebp - 0x2008]
push 2
push eax
push dword [ebx + 0x410]
call fcn.00487417
add esp, 0xc
test eax, eax
jne 0x45ee88
push dword [ebx + 0x410]
call fcn.00487563
pop ecx
test eax, eax
jne 0x45ee88
push edi
push edi
push 0x80
push 2
push 4
push 0x40000000
push esi
lea ecx, [ebp - 0x200c]
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x2008], edi
call fcn.0041b166
mov esi, dword [ebp - 0x200c]
test eax, eax
jne 0x45ee6d
jmp 0x45ee4c
push edi
lea ecx, [ebp - 0x2008]
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45ee4c
call fcn.00417d0b
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ebx + 0x410]
call fcn.00487b97
add esp, 0xc
test eax, eax
jg 0x45ee2c
xor edi, edi
inc edi
push dword [ebx + 0x410]
call fcn.004872b5
pop ecx
test esi, esi
je 0x45ee84
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x45ee8a
xor eax, eax
lea esp, [ebp - 0x201c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495535
mov esp, ebp
pop ebp
ret 8
Function at 0x45eea3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00495d20
mov eax, dword [0x4e6e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x2008], esi
cmp dword [ebx + 0x414], edi
je 0x45efd4
test eax, eax
je 0x45eef2
push eax
call fcn.00491c27
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x45eef6
mov eax, edi
jmp 0x45ef17
lea esi, [eax + eax]
mov eax, esi
call fcn.00495c60
mov eax, esp
push 3
push esi
push dword [ebp - 0x2010]
push eax
call fcn.00418030
mov esi, dword [ebp - 0x2008]
push 2
push eax
push dword [ebx + 0x414]
call fcn.00487417
add esp, 0xc
test eax, eax
jne 0x45efd4
push dword [ebx + 0x414]
call fcn.00487563
pop ecx
test eax, eax
jne 0x45efd4
push edi
push edi
push 0x80
push 2
push 4
push 0x40000000
push esi
lea ecx, [ebp - 0x200c]
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x2008], edi
call fcn.0041b166
mov esi, dword [ebp - 0x200c]
test eax, eax
jne 0x45efb9
jmp 0x45ef98
push edi
lea ecx, [ebp - 0x2008]
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45ef98
call fcn.00417d0b
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ebx + 0x414]
call fcn.00487b97
add esp, 0xc
test eax, eax
jg 0x45ef78
xor edi, edi
inc edi
push dword [ebx + 0x414]
call fcn.004872b5
pop ecx
test esi, esi
je 0x45efd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x45efd6
xor eax, eax
lea esp, [ebp - 0x201c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495535
mov esp, ebp
pop ebp
ret 8
Function at 0x484d74
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x4e6e00]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [esp + 0x34], 0xc
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jge 0x484daf
xor eax, eax
jmp 0x484ec3
mov eax, dword [0x4efbf0]
inc eax
push edi
xor edi, edi
mov dword [0x4efbf0], eax
mov dword [esp + 0x1c], edi
cmp eax, 1
jne 0x484dd9
push edi
call fcn.004954e4
xor eax, 0xbb40e64e
push eax
call fcn.004995ab
pop ecx
pop ecx
push esi
push ebp
push ebx
call fcn.00484ef6
add esp, 0xc
call fcn.0049958a
mov edx, eax
sar edx, 7
push esi
and edx, 0xff
push ebp
mov dword [esp + 0x1c], edx
call fcn.00484ed5
push edx
push esi
push ebp
mov ebx, eax
call fcn.00484f31
mov eax, dword [esp + 0x28]
add esp, 0x14
xor al, bl
mov byte [esp + edi + 0x28], al
inc edi
cmp edi, 0xa
jl 0x484de4
push esi
push ebp
push dword [esp + 0x20]
call fcn.00484ef6
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
mov edi, dword [esp + 0x28]
add esp, 0xc
sub eax, ecx
mov dword [esp + 0x18], eax
push esi
push ebp
call fcn.00484ed5
movzx ecx, byte [esp + edi + 0x30]
mov ebx, eax
push ecx
push esi
push ebp
call fcn.00484f31
mov cl, byte [esp + edi + 0x3c]
add esp, 0x14
mov eax, dword [esp + 0x18]
xor cl, bl
add eax, edi
inc edi
mov byte [esp + eax + 0x28], cl
cmp edi, 0xa
jl 0x484e3c
push esi
push ebp
call fcn.00484ed5
mov esi, dword [esp + 0x58]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
push ebp
call fcn.00484f31
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor bl, byte [esp + 0x30]
push edx
push ebp
mov byte [eax + edi], bl
call fcn.00484ed5
shr esi, 0x18
mov ebx, eax
push esi
push edx
push ebp
call fcn.00484f31
mov ecx, dword [esp + 0x48]
mov eax, esi
add esp, 0x28
xor al, bl
mov byte [ecx + edi + 1], al
lea eax, [edi + 2]
pop edi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00495535
add esp, 0x28
ret

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

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 0xff
mov ecx, dword [esi]
mov eax, ecx
xor eax, dword [esp + 0x14]
and eax, edi
shr ecx, 8
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, edi
pop edi
xor ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ecx
pop esi
ret
Function at 0x484f7e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp dword [edi + 0x100ac], ebx
je 0x484fdf
cmp dword [edi + 0x7c], ebx
jbe 0x484fdf
push ebp
mov ebp, 0xffffff5c
lea eax, [edi + 0x100d0]
lea esi, [edi + 0xa4]
sub ebp, edi
mov edx, dword [edi + 0x100dc]
push edx
push eax
call fcn.00484ed5
movzx ecx, byte [esi]
mov ebx, eax
push ecx
push edx
lea eax, [edi + 0x100d0]
push eax
call fcn.00484f31
xor byte [esi], bl
add esp, 0x14
inc esi
lea eax, [esi + ebp]
cmp eax, dword [edi + 0x7c]
lea eax, [edi + 0x100d0]
jb 0x484fa8
xor ebx, ebx
pop ebp
mov esi, dword [edi + 0x7c]
lea eax, [edi + 0xa4]
push esi
push eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
mov dword [edi + 0x7c], ebx
or ecx, 0xffffffff
mov edx, ebx
cmp eax, esi
cmovne edx, ecx
add dword [edi + 0x100c0], esi
mov ecx, dword [edi + 0x48]
mov eax, edx
adc dword [edi + 0x100c4], ebx
add dword [edi + 0x100c8], ecx
mov dword [edi + 0x48], ebx
adc dword [edi + 0x100cc], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4857fd
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0xc], edi
test ebx, ebx
jne 0x48581b
push 0xffffffffffffff9a
pop eax
jmp 0x48595a
cmp dword [ebx + 0x38], 1
jne 0x48582a
push ebx
call fcn.00485961
pop ecx
mov ebp, eax
cmp dword [esp + 0x24], edi
jne 0x48583a
mov eax, dword [ebx + 0x10100]
mov dword [esp + 0x24], eax
push esi
push dword [ebx + 0x2c]
push ebx
call fcn.00489afb
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
pop ecx
pop ecx
test ebp, ebp
jne 0x48588b
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x48588b
test ebp, ebp
jne 0x48587e
cmp dword [esi + 8], ebp
jbe 0x48587e
push dword [esi + 8]
lea eax, [esi + 0x10]
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x1c]
call dword [ebx + 8]
add esp, 0x10
cmp eax, dword [esi + 8]
push 0xffffffffffffffff
pop eax
cmovne ebp, eax
add edi, dword [esi + 8]
mov esi, dword [esi]
test esi, esi
jne 0x485859
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4858a1
mov esi, dword [eax]
push eax
call fcn.0048e3df
mov eax, esi
pop ecx
test esi, esi
jne 0x485892
mov edx, dword [esp + 0x24]
mov ecx, edx
and dword [ebx + 0x34], 0
and dword [ebx + 0x30], 0
sub ecx, dword [ebx + 0x100f0]
mov esi, dword [esp + 0x14]
mov eax, esi
sbb eax, dword [ebx + 0x100f4]
mov dword [esp + 0x1c], eax
jne 0x4858ce
or eax, 0xffffffff
cmp ecx, eax
jb 0x485904
push dword [ebx + 0x2c]
push ebx
call fcn.00489afb
push dword [esp + 0x1c]
mov edi, eax
mov esi, edx
push dword [esp + 0x30]
push dword [esp + 0x20]
push ebx
call fcn.00484bb1
push esi
push edi
push ebx
call fcn.00484b3d
mov edi, dword [esp + 0x34]
add esp, 0x24
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
test ebp, ebp
jne 0x485928
push esi
push edx
push edi
push ebx
call fcn.004847e3
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x485928
push dword [esp + 0x28]
push ebx
call fcn.004848fb
pop ecx
pop ecx
mov ebp, eax
push dword [ebx + 0x2c]
push dword [ebx + 0x1c]
call dword [ebx + 0x14]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x485940
push 0xffffffffffffffff
test ebp, ebp
pop eax
cmove ebp, eax
mov eax, dword [ebx + 0x10100]
test eax, eax
je 0x485951
push eax
call fcn.0048e3df
pop ecx
push ebx
call fcn.0048e3df
pop ecx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4893c6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, ebx
sub ecx, dword [edi + 0x6c]
mov dword [esp + 0x14], ecx
cmp dword [edi + 0x6c], eax
jb 0x489452
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00490990
mov ebp, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
lea esi, [eax + ebp*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
dec ebp
jne 0x489410
mov eax, dword [edi + 0x40]
mov ebp, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
dec ebp
jne 0x489432
mov ecx, dword [esp + 0x14]
add ecx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x48956c
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov ebp, eax
cmova ebp, ecx
test ebp, ebp
je 0x4894c0
sub eax, ebp
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x489496
push ebp
push dword [esi]
push dword [esi + 0x30]
call fcn.0048b488
jmp 0x4894a6
cmp eax, 2
jne 0x4894ac
push ebp
push dword [esi]
push dword [esi + 0x30]
call fcn.004897d0
mov dword [esi + 0x30], eax
add esp, 0xc
push ebp
push dword [esi]
push dword [esp + 0x1c]
call fcn.00490990
add dword [esi], ebp
add esp, 0xc
add dword [esi + 8], ebp
add dword [edi + 0x74], ebp
cmp dword [edi + 0x74], 3
jb 0x4894e8
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x4894fd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4893d1
mov ecx, dword [edi + 0x16c0]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jae 0x48956c
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x74]
cmp ecx, esi
jae 0x48953c
mov eax, 0x102
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call fcn.00491060
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x48956c
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x48956c
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebx, ecx
add esi, 0x102
cmp esi, ebx
cmova esi, ebx
add eax, ecx
push esi
push 0
push eax
call fcn.00491060
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4a7281
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e6e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00498510
mov dword [ebp - 0x14], eax
cmp dword [0x4f0b28], esi
jne 0x4a7374
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a7301
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a7454
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a7454
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a7454
push eax
call ebx
push 0x4ca458
push edi
mov dword [0x4f0b28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4f0b2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4f0b30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f0b38], eax
test eax, eax
je 0x4a7371
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f0b34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a7399
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a738c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a73ae
push 4
pop eax
jmp 0x4a7456
cmp dword [ebp - 0x14], esi
je 0x4a73ae
push dword [0x4f0b28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a7393
mov eax, dword [0x4f0b34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a740c
cmp dword [0x4f0b38], edi
je 0x4a740c
push eax
call ebx
push dword [0x4f0b38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a740c
test eax, eax
je 0x4a740c
call ecx
test eax, eax
je 0x4a7401
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a7401
test byte [ebp - 8], 1
jne 0x4a740c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a743c
mov eax, dword [0x4f0b2c]
cmp eax, edi
je 0x4a7439
push eax
call ebx
test eax, eax
je 0x4a7439
call eax
mov esi, eax
test esi, esi
je 0x4a7439
mov eax, dword [0x4f0b30]
cmp eax, edi
je 0x4a7439
push eax
call ebx
test eax, eax
je 0x4a7439
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4f0b28]
call ebx
test eax, eax
je 0x4a7454
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a7456
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495535
mov esp, ebp
pop ebp
ret