joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45089f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x471680]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x471770]
je 0x4508d4
inc eax
cmp eax, 0x13
jb 0x4508c5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x471770]
jne 0x4509fa
mov eax, dword [0x474b20]
cmp eax, 1
je 0x4509d2
cmp eax, edx
jne 0x450904
cmp dword [0x471674], 1
je 0x4509d2
cmp ecx, 0xfc
je 0x4509fa
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45093a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0044a1e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00449600
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45096e
mov eax, edi
push eax
call fcn.00449600
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d8d4
push edi
call fcn.00449690
add esp, 0x10
push edi
call fcn.00449600
push dword [esi + 0x471774]
mov ebx, eax
call fcn.00449600
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044a2e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0044a1e0
push edi
push ebx
call fcn.0044a1f0
push 0x46d8d0
push ebx
call fcn.0044a1f0
push dword [esi + 0x471774]
push ebx
call fcn.0044a1f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0044d682
add esp, 0x2c
jmp 0x4509fa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x471774]
push dword [esi]
call fcn.00449600
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0044d956
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x450a4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x477cc4]
push edi
jae 0x450c24
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x477ce0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x450c24
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x450afa
test dl, 2
jne 0x450afa
test dl, 0x48
je 0x450ac4
cmp byte [eax + 5], 0xa
je 0x450ac4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x450af5
mov dword [0x474acc], ecx
jmp 0x450c2b
cmp eax, 0x6d
jne 0x450b01
xor eax, eax
jmp 0x450c38
push eax
call fcn.00450e94
pop ecx
jmp 0x450c35
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x450c1f
test eax, eax
je 0x450b34
cmp byte [ebx], 0xa
jne 0x450b34
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x450b3d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x450c19
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x450c09
cmp al, 0xd
je 0x450b6f
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x450bfb
dec ecx
cmp dword [ebp - 8], ecx
jae 0x450b89
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x450b84
add dword [ebp - 8], 2
jmp 0x450bdd
mov dword [ebp - 8], eax
jmp 0x450bf7
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450bf7
cmp dword [ebp - 0x10], 0
je 0x450bf7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x450bd2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x450bdd
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x450bfa
cmp ebx, dword [ebp + 0xc]
jne 0x450be2
cmp byte [ebp - 1], 0xa
jne 0x450be2
mov byte [ebx], 0xa
jmp 0x450bfa
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00451daf
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x450bfb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x450b53
jmp 0x450c19
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x450c19
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x450c38
and dword [0x474acc], 0
mov dword [0x474ac8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452f4a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x452f78
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x452f7f
cmp ebx, dword [eax + 4]
jae 0x452f7f
xor eax, eax
jmp 0x45316f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x452f90
xor eax, eax
inc eax
jmp 0x45316e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x452fa6
cmp ecx, edx
jae 0x4530eb
cmp dword [eax + 4], 0
je 0x452faf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x452f97
cmp dword [ebp + 8], 0
je 0x452fd1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4530eb
cmp eax, esi
jae 0x4530eb
mov eax, dword [0x474dc0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x452ff6
cmp dword [esi*4 + 0x474dc8], edi
je 0x4530ef
inc esi
cmp esi, eax
jl 0x452fe4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45316b
cmp dword [ebp - 8], 0x1000000
jne 0x45316b
test byte [ebp - 0xc], 0xcc
je 0x453074
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45316b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45316b
cmp word [eax + 0x18], 0x10b
jne 0x45316b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45316b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x453074
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x453074
test byte [ecx + 0x27], 0x80
jne 0x4530eb
push 1
push 0x474e08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x452f88
mov ecx, dword [0x474dc0]
test ecx, ecx
mov edx, ecx
jle 0x4530a8
lea eax, [ecx*4 + 0x474dc4]
cmp dword [eax], edi
je 0x4530a8
dec edx
sub eax, 4
test edx, edx
jg 0x45309c
test edx, edx
jne 0x4530d9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4530b5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4530cd
lea eax, [edx*4 + 0x474dc8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4530bb
cmp ecx, 0x10
jge 0x4530d9
inc ecx
mov dword [0x474dc0], ecx
push 0
push 0x474e08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x452f88
xor eax, eax
jmp 0x45316e
test esi, esi
jle 0x452f88
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x474e08
call ebx
test eax, eax
jne 0x452f88
cmp dword [esi*4 + 0x474dc8], edi
je 0x453145
mov eax, dword [0x474dc0]
lea esi, [eax - 1]
test esi, esi
jl 0x453133
cmp dword [esi*4 + 0x474dc8], edi
je 0x45312f
dec esi
jns 0x453123
test esi, esi
jge 0x453143
cmp eax, 0x10
jge 0x45313e
inc eax
mov dword [0x474dc0], eax
lea esi, [eax - 1]
jmp 0x453145
je 0x45315d
xor ecx, ecx
test esi, esi
jl 0x45315d
lea eax, [ecx*4 + 0x474dc8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45314b
push 0
push 0x474e08
call ebx
jmp 0x452f88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4536ea
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x453703
or eax, 0xffffffff
jmp 0x453764
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x453760
push 0x3d
push esi
call fcn.00454188
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x453760
cmp esi, eax
je 0x453760
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x474af4]
sete cl
cmp eax, dword [0x474af8]
mov dword [ebp - 8], ecx
jne 0x453746
mov edi, eax
call fcn.00453689
mov dword [0x474af4], eax
cmp eax, ebx
jne 0x45379f
cmp dword [ebp + 0xc], ebx
je 0x453768
cmp dword [0x474afc], ebx
je 0x453768
call fcn.00450e04
test eax, eax
je 0x45379f
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x453771
xor eax, eax
jmp 0x453763
push 4
call fcn.0044b67c
cmp eax, ebx
pop ecx
mov dword [0x474af4], eax
je 0x453760
mov dword [eax], ebx
cmp dword [0x474afc], ebx
jne 0x45379f
push 4
call fcn.0044b67c
cmp eax, ebx
pop ecx
mov dword [0x474afc], eax
je 0x453760
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x474af4]
call fcn.0045363c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x453800
cmp dword [esi], ebx
je 0x453800
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044b7f0
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4537e3
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x453841
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4537da
mov eax, edi
shl eax, 2
push eax
push dword [0x474af4]
call fcn.0044b68e
cmp eax, ebx
pop ecx
pop ecx
je 0x453841
jmp 0x45383c
cmp dword [ebp - 8], ebx
jne 0x4538ac
cmp edi, ebx
jge 0x45380f
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x474af4]
call fcn.0044b68e
cmp eax, ebx
pop ecx
pop ecx
je 0x453760
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x474af4], eax
cmp dword [ebp + 0xc], ebx
je 0x453896
push dword [ebp - 4]
call fcn.00449600
inc eax
inc eax
push eax
call fcn.0044b67c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x453896
push dword [ebp - 4]
push esi
call fcn.0044a1e0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45388f
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044b7f0
pop ecx
cmp dword [ebp - 8], ebx
je 0x4538a4
push dword [ebp - 4]
call fcn.0044b7f0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x453763
push dword [ebp - 4]
call fcn.0044b7f0
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45376d
Function at 0x453903
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0044a2e0
mov eax, dword [0x471680]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x477cc4]
mov dword [ebp - 4], eax
jae 0x453a46
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x477ce0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x453a46
push 1
push esi
push ebx
call fcn.00451daf
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x453a50
push 2
push esi
push ebx
call fcn.00451daf
add esp, 0xc
cmp eax, 0xffffffff
je 0x453a50
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4539f0
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004495a0
push 0x8000
push ebx
call fcn.004541ef
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4539af
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0044e011
add esp, 0xc
cmp eax, 0xffffffff
je 0x4539cd
sub edi, eax
test edi, edi
jg 0x4539a4
jmp 0x4539e3
cmp dword [0x474acc], 5
jne 0x4539e0
mov dword [0x474ac8], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004541ef
pop ecx
pop ecx
jmp 0x453a30
jge 0x453a30
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00451daf
push ebx
call fcn.004516bb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x453a30
mov dword [0x474ac8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x474acc], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00451daf
add esp, 0xc
mov eax, esi
pop edi
jmp 0x453a53
mov dword [0x474ac8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044d956
leave
ret
Function at 0x403570
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403740
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.0046eed0
jmp fcn.00403570
Function at 0x408d20
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x408e0a
sub esp, 0x2c
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
call fcn.00408f10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 0x14
and ecx, 0x7ff
mov ebx, edx
shr edx, 0xf
and edx, 0x1f
shl ebx, 5
shr eax, 0x1b
or eax, ebx
and eax, 0xfffff
mov dword [esp + 0x10], eax
lea ebx, [0x50cbc0]
movsd xmm0, qword [ebx + edx*8]
movsd qword [esp + 0x14], xmm0
add ecx, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
add edx, 1
movsd xmm1, qword [ebx + edx*8]
movsd qword [esp + 0x1c], xmm1
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00463cd0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00463d50
movsd xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x4ae01c]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd qword [esp + 0x38], xmm0
add esp, 0x2c
ret
call fcn.0046eed0
jmp fcn.00408d20

Function at 0x40c650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c778
sub esp, 0x20
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x24]
bsf ebx, edx
jne 0x40c678
mov ebx, 0x20
mov ebp, dword [eax + 0x20]
bsf esi, ebp
jne 0x40c685
mov esi, 0x20
cmp ebp, 1
sbb edi, edi
xor edi, 0xffffffff
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebx
lea ebx, [esi + edi]
cmp ebx, 0x40
jge 0x40c76c
mov dword [esp + 0x10], ebp
movzx ecx, word [eax + 0x18]
lea ebp, [ebx + ecx]
movzx eax, word [eax + 0x1a]
cmp ax, bp
jbe 0x40c76c
lea ebx, [ebx + ecx + 1]
test bx, 0x3f
jne 0x40c6d5
cmp ax, bx
je 0x40c6d5
mov dword [esp + 0x28], 0
add esp, 0x20
ret
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edx
lea ecx, [esi + edi - 0x1f]
mov dword [esp + 0x1c], ecx
mov eax, edx
shr edx, cl
mov dword [esp + 0x18], edx
neg ecx
shl eax, cl
lea esi, [esi + edi + 1]
mov edi, ecx
mov ecx, esi
mov ebx, dword [esp + 0xc]
shr ebx, cl
mov edx, dword [esp + 0x10]
shr edx, cl
movzx ebp, bp
mov dword [esp + 0x14], ebp
cmp ecx, 0x20
sbb esi, esi
and edx, esi
and ebx, esi
cmp edi, 0x20
sbb esi, esi
and eax, esi
or eax, edx
mov edx, dword [esp + 0x1c]
cmp edx, 0x20
sbb edx, edx
mov esi, dword [esp + 0x18]
and esi, edx
or eax, esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ebx
movzx eax, word [esp + 0xa]
mov word [edx + 0x18], ax
movzx eax, word [edx + 0x3c]
inc eax
mov word [edx + 0x3c], ax
mov dword [esp], edx
call fcn.004281f0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
imul eax, dword [edx + 0x44]
add eax, dword [esp + 4]
mov dword [esp + 0x28], eax
add esp, 0x20
ret
mov dword [esp + 0x28], 0
add esp, 0x20
ret
call fcn.0046eed0
jmp fcn.0040c650
Function at 0x416590
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416766
sub esp, 0x18
mov eax, dword [0x52fad4]
test eax, eax
jne 0x41674f
lea eax, [0x52fac4]
mov dword [esp], eax
call fcn.0040ad70
mov eax, dword [0x52fac8]
test eax, eax
je 0x4165d6
cmp dword [eax + 8], 0xcc
jne 0x41664c
mov eax, dword [0x52facc]
test eax, eax
jne 0x41662e
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x532190]
mov dword [esp + 8], eax
call fcn.0040ccb0
mov eax, dword [esp + 0xc]
mov dword [0x52facc], eax
mov ecx, dword [0x52fad0]
mov dword [eax], ecx
mov eax, dword [0x52facc]
mov dword [0x52fad0], eax
movzx eax, byte [0x52ff20]
test al, al
jne 0x41662e
xor eax, eax
jmp 0x416743
mov eax, dword [0x52facc]
mov ecx, dword [eax + 4]
mov dword [0x52facc], ecx
mov ecx, dword [0x52fac8]
mov dword [eax + 4], ecx
mov dword [0x52fac8], eax
mov eax, dword [0x52fac8]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea edx, [eax + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.004750c0
mov eax, dword [0x52fc68]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x416693
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x4166d3
call fcn.00470330
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x18], esi
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x1c], esi
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], ebx
mov dword [edx + ecx*4 + 0x20], ebp
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4 + 0x14], eax
lea eax, [0x52fac4]
mov dword [esp], eax
call fcn.0040af90
lea eax, [0x52fac0]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00474b90
add esp, 0x18
ret
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov ebx, ecx
sub ecx, edx
lea edx, [0x50c2b8]
movzx ecx, byte [edx + ecx]
lea ebp, [0x52ff20]
mov byte [ebp + ebx], cl
lea eax, [ebx + 1]
cmp eax, 0x80
jl 0x416717
jmp 0x41662e
lea eax, [0x4a4509]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0046b0d0
nop
call fcn.0046eed0
jmp fcn.00416590
Function at 0x41afa0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41b017
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.0041b570
movzx eax, byte [esp + 4]
test al, al
je 0x41affc
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + 6]
test cl, cl
jne 0x41b000
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.0041b020
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.0041b5c0
add esp, 0xc
ret
add esp, 0xc
ret
lea eax, [0x4a4521]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0046b0d0
nop
call fcn.0046eed0
jmp fcn.0041afa0
Function at 0x42b350
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42b4d8
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 2
ja 0x42b42f
cmp cl, 1
je 0x42b3d0
cmp cl, 2
jne 0x42b4c1
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00474ce0
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040ad70
lea eax, [0x51c160]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00417690
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040af90
jmp 0x42b4bd
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00416590
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040ad70
lea eax, [0x51c0c0]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00417690
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040af90
jmp 0x42b4bd
cmp cl, 3
je 0x42b478
cmp cl, 4
jne 0x42b43f
mov byte [eax + 8], 1
jmp 0x42b4bd
cmp cl, 5
jne 0x42b4c1
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040ad70
lea eax, [0x51c138]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00417690
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040af90
jmp 0x42b4bd
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.00430d00
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040ad70
lea eax, [0x51c0e8]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00417690
lea eax, [0x51c188]
mov dword [esp], eax
call fcn.0040af90
add esp, 0x14
ret
lea eax, [0x4a28a3]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0046b0d0
nop
call fcn.0046eed0
jmp fcn.0042b350