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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402e0f
pop dword [ebp - 0x44]
mov eax, 0x402e0f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xad0e50df
sub dword [ebp - 0x54], 0x5ebc0b94
mov dword [ebp - 0x50], 0x4ab49a0
sub dword [ebp - 0x50], 0xd277fd5b
mov dword [ebp - 0x4c], 0x37c15643
add dword [ebp - 0x4c], 0x148aedeb
mov dword [ebp - 0x48], 0x52a8f93
sub dword [ebp - 0x48], 0x52a8f93
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x45c267cd
add dword [ebp - 0x54], 0x2eb00189
mov dword [ebp - 0x50], 0x4fc60656
sub dword [ebp - 0x50], 0xe59a4e1
mov dword [ebp - 0x4c], 0xbfa02901
add dword [ebp - 0x4c], 0xa3cf436b
mov dword [ebp - 0x48], 0xce621ceb
add dword [ebp - 0x48], 0x319de315
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x9a3b5d1d
add eax, 0x6605e31f
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3d609
push 0
call eax
mov ecx, 0x525b
mov ebx, eax
mov edi, 0xcb9cfe0
add edi, 0xf387f020
add edi, dword [ebp - 0x44]
mov edx, 0x4ac5fe15
xor dword [ebp - 0x28], 0x677e62ba
mov esi, dword [edi]
add dword [ebp - 8], edi
add esi, edx
xor dword [ebp - 0x14], 0x45de45c1
mov dword [ebx], esi
add ebx, 0x8125c486
add ebx, 0x7eda3b7e
add edi, 0x699912cf
add edi, 0x9666ed35
loop 0x402f1b
add eax, 0x3d816f3
sub eax, 0x3d6dab4
xor ebx, ebx
add ebx, eax
add eax, 0x7c03320a
add eax, 0x83fccdfb
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0xa72e98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0xa72ef3
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0xa72eb8
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x401cd0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
aeskeygenassist xmm0, xmmword [edx], 2
movdqa xmmword [ecx], xmm0
pop ebp
ret
Function at 0x417c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.00417c8a
Function at 0x42a5a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x42a5f8
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x42a5f0
cmp eax, ebx
jb 0x42a672
cmp eax, dword [ebp + 0x10]
ja 0x42a683
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x42a5f2
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x42a5e0
jmp 0x42a64f
ja 0x42a5f8
cmp edx, edi
mov ebx, eax
jne 0x42a5b2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x42a653
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x42a630
mov esi, edi
sub ecx, ebx
jns 0x42a647
jmp 0x42a655
cmp edi, edx
je 0x42a65c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x42a655
xor al, 1
cmp esi, edx
jne 0x42a610
jmp 0x42a655
xor eax, eax
jmp 0x42a655
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x59f978
push 0x2b
push str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
call fcn.004251d0
add esp, 0xc
ud2
push 0x59f988
push eax
push ebx
call fcn.00428850
add esp, 0xc
ud2
push 0x59f988
push dword [ebp + 0x10]
push eax
call fcn.004287f0
add esp, 0xc
ud2
Function at 0x42cce0
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
movsd xmm1, qword [edx + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0x6b206574
mov dword [ebp - 0x44], 0x79622d32
mov dword [ebp - 0x48], 0x3320646e
mov dword [ebp - 0x4c], 0x61707865
movsd xmm0, qword [edx]
movsd xmm2, qword [edx + 0x18]
mov edi, dword [0x60746c]
mov esi, ecx
movsd qword [ebp - 0x34], xmm1
movsd xmm1, qword [edx + 0x10]
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x24], xmm2
movsd qword [ebp - 0x2c], xmm1
movsd xmm1, qword [eax]
mov eax, dword [eax + 8]
movsd qword [ebp - 0x1c], xmm1
mov dword [ebp - 0x14], eax
movzx eax, byte [edi]
cmp al, 0xff
jne 0x42cd9e
lea eax, [ebp - 0x5c]
push 1
push eax
call fcn.0041c1a0
add esp, 8
lea eax, [ebp - 0x6c]
push 0
push 7
push eax
call fcn.0041c1d0
add esp, 0xc
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
mov eax, ebx
not eax
test eax, 0xc000000
jne 0x42cd90
mov dword [ebp - 0x10], ecx
call fcn.0042eea0
mov ecx, dword [ebp - 0x10]
not eax
test al, 6
sete al
jmp 0x42cd92
xor eax, eax
shr cl, 5
shr ebx, 0x1c
and cl, al
and bl, cl
mov byte [edi], bl
movsd xmm1, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movsd qword [esi + 0x20], xmm1
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 0x18], xmm2
movsd xmm2, qword [ebp - 0x4c]
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x10], xmm1
movsd xmm1, qword [ebp - 0x44]
movsd qword [esi], xmm2
movsd qword [esi + 8], xmm1
movsd xmm1, qword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
movsd qword [esi + 0x34], xmm1
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov byte [esi + 0x80], 0
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42f220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [edx + 0x10]
mov edi, dword [edx]
mov eax, dword [edx + 0x14]
mov ebx, dword [edx + 4]
add edi, esi
adc ebx, eax
add esi, 1
movd xmm0, edi
adc eax, 0
mov dword [edx + 0x10], esi
movd xmm1, ebx
mov dword [edx + 0x14], eax
punpckldq xmm0, xmm1
mov eax, dword [ebp + 8]
movdqu xmm2, xmmword [edx + 8]
punpcklqdq xmm0, xmm2
pxor xmm0, xmmword [ecx]
aesenc xmm0, xmmword [ecx + 0x10]
aesenc xmm0, xmmword [ecx + 0x20]
aesenc xmm0, xmmword [ecx + 0x30]
aesenc xmm0, xmmword [ecx + 0x40]
aesenc xmm0, xmmword [ecx + 0x50]
aesenc xmm0, xmmword [ecx + 0x60]
aesenc xmm0, xmmword [ecx + 0x70]
aesenc xmm0, xmmword [ecx + 0x80]
aesenc xmm0, xmmword [ecx + 0x90]
aesenc xmm0, xmmword [ecx + 0xa0]
aesenc xmm0, xmmword [ecx + 0xb0]
aesenc xmm0, xmmword [ecx + 0xc0]
aesenc xmm0, xmmword [ecx + 0xd0]
aesenclast xmm0, xmmword [ecx + 0xe0]
movdqu xmmword [eax], xmm0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4335d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [edx + 8]
mov edi, dword [edx + 4]
mov esi, ecx
mov cl, 1
lea ebx, [eax + 1]
cmp ebx, edi
mov dword [edx + 8], ebx
jae 0x43360d
mov ecx, dword [edx]
movzx ecx, byte [ecx + ebx]
cmp ecx, 0x2b
je 0x433603
cmp ecx, 0x2d
mov cl, 1
jne 0x43360d
xor ecx, ecx
jmp 0x433605
mov cl, 1
add eax, 2
mov ebx, eax
mov dword [edx + 8], eax
cmp ebx, edi
jae 0x4337ae
mov eax, dword [edx]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov esi, edx
lea edx, [ebx + 1]
mov dword [ebp - 0x14], esi
movzx ecx, byte [eax + ebx]
mov dword [esi + 8], edx
add cl, 0xd0
cmp cl, 0xa
jae 0x4337cc
mov esi, dword [ebp + 0xc]
cmp edx, edi
mov dword [ebp - 0x28], esi
movzx esi, cl
jae 0x4336ae
mov edx, dword [ebp - 0x14]
neg edi
add ebx, 2
jmp 0x433663
movzx ecx, cl
lea esi, [esi + esi*4]
lea esi, [ecx + esi*2]
lea ecx, [edi + ebx + 1]
inc ebx
cmp ecx, 1
je 0x4336b1
movzx ecx, byte [eax + ebx - 1]
add cl, 0xd0
cmp cl, 0xa
jae 0x4336b1
cmp esi, 0xccccccb
mov dword [edx + 8], ebx
jle 0x433650
cmp esi, 0xccccccc
jne 0x433688
cmp cl, 7
jbe 0x433650
mov ecx, dword [ebp - 0x28]
xor eax, eax
movzx esi, byte [ebp - 0x18]
movzx edi, byte [ebp + 8]
or ecx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
sete al
push esi
push eax
push edi
call fcn.00433ff0
add esp, 0x28
jmp 0x43379d
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
cmp byte [ebp - 0x18], 0
je 0x4336c9
lea eax, [edi + esi]
sar eax, 0x1f
add eax, 0x80000000
add edi, esi
jmp 0x4336d7
xor eax, eax
cmp edi, esi
setns al
add eax, 0x7fffffff
sub edi, esi
cmovo edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
movd xmm0, eax
movd xmm1, ecx
mov eax, edi
punpckldq xmm1, xmm0
neg eax
punpckldq xmm1, xmmword [0x5a4b50]
cmovs eax, edi
cmp eax, 0x135
subpd xmm1, xmmword [0x5a4b60]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jb 0x433758
movsd xmm2, qword [0x5a4b70]
xorpd xmm1, xmm1
nop word cs:[eax + eax]
nop
ucomisd xmm0, xmm1
jne 0x433738
jnp 0x433783
test edi, edi
jns 0x4337ec
divsd xmm0, xmm2
add edi, 0x134
mov eax, edi
neg eax
cmovs eax, edi
cmp eax, 0x134
ja 0x433730
mov ecx, dword [0x607454]
test edi, edi
movsd xmm1, qword [ecx + eax*8]
js 0x4337a2
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x5a4b78]
jae 0x4337ec
movsd xmm1, qword [0x5a4b80]
ucomisd xmm1, xmm0
jae 0x4337ec
cmp byte [ebp + 8], 0
jne 0x433791
xorpd xmm0, xmmword [0x5a4b90]
movsd qword [esi + 8], xmm0
xor eax, eax
mov dword [esi], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
divsd xmm0, xmm1
cmp byte [ebp + 8], 0
je 0x433789
jmp 0x433791
lea eax, [ebp - 0x24]
mov ecx, edx
mov dword [ebp - 0x24], 5
mov edx, eax
call fcn.00434080
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x43379a
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xd
call fcn.00434080
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 1
jmp 0x43379a
lea eax, [ebp - 0x24]
mov ecx, edx
mov dword [ebp - 0x24], 0xe
mov edx, eax
call fcn.00434080
mov dword [esi + 4], eax
mov eax, 1
jmp 0x433798
Function at 0x43f1c0
Capabilities:
Get system information on windows
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4b0
call fcn.0043f1d4
Function at 0x488570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x580
call fcn.00488584
Function at 0x48c500
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov edx, dword [esi + 0xa4]
movzx ecx, byte [edi + 0x27c]
mov eax, dword [esi + 0x94]
mov dword [esp + 8], esi
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xa8]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0xac]
mov dword [esi + 0xa4], 1
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esp + 0x9c], edx
mov edx, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x78], edx
and ebx, 0x7ffffff
mov edx, ebx
shr edx, cl
call fcn.0048c57f
Function at 0x4aff50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x550
mov ecx, dword [ebp + 0xc]
call fcn.004aff67
Function at 0x4c9480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
mov eax, dword [0x59907c]
test eax, eax
je 0x4c94ab
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x4c94c3
cmp dword [eax + 4], 0
je 0x4c94c3
add eax, 8
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x4c949c
mov eax, dword [0x59907c]
test eax, eax
je 0x4c9574
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x4c9590
mov esi, eax
test eax, eax
jne 0x4c953b
mov eax, dword [0x607474]
mov esi, dword [0x607460]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x4c9509
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4c95a7
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4c95a7
mov dword [eax], 0x59907c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x59907c]
test eax, eax
je 0x4c9598
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c9550
mov ecx, dword [eax + 4]
cmp dword [eax], 0
mov dword [eax], 0
jne 0x4c9561
mov ecx, 1
lock xadd dword [0x599078], ecx
test ecx, ecx
je 0x4c95b5
mov dword [esi + 4], 1
lea eax, [esi + 8]
mov dword [esi + 8], ecx
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4c94e0
xor eax, eax
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
jmp 0x4c9534
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2
mov dword [ebp - 0x1c], 0x5b1708
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x5ac6f0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x1c]
push 0x5b1710
push eax
call fcn.00425150
add esp, 8
ud2
Function at 0x4e6490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
test esi, esi
je 0x4e64e9
cmp dword [eax], 0
jne 0x4e6522
mov ebx, dword [edx + 8]
xor eax, eax
mov dword [edx + 8], 0
test ebx, ebx
je 0x4e6522
mov edi, dword [0x607460]
add esi, 4
jmp 0x4e64d6
add esi, 0x10
dec ebx
je 0x4e651d
cmp dword [esi], 0
je 0x4e64d0
push dword [esi - 4]
push 0
push dword [edi]
call sub.KERNEL32.dll_HeapFree
jmp 0x4e64d0
mov ebx, dword [eax]
test ebx, ebx
je 0x4e6520
mov esi, dword [eax + 8]
test esi, esi
je 0x4e6520
mov ecx, dword [ebx + 8]
cmp esi, 1
jne 0x4e652a
test ecx, ecx
je 0x4e6698
add ebx, 0xc
shl esi, 4
nop dword [eax]
mov byte [ebx], 0
add ebx, 0x10
add esi, 0xfffffff0
jne 0x4e6510
jmp 0x4e6520
mov edx, dword [ebp + 0xc]
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esi + 0xfffffff]
xor edi, edi
mov eax, edx
and eax, 0xfffffff
cmp eax, 8
jb 0x4e6673
movd xmm0, ecx
and edx, 7
mov edi, eax
pshufd xmm1, xmm0, 0
movdqa xmm0, xmmword [0x5b1ac0]
sub edi, edx
mov dword [ebp - 0x10], edx
lea edx, [ebx + 0x88]
mov ecx, edi
movdqa xmm2, xmm1
nop dword [eax]
movd xmm3, dword [edx - 0x40]
movd xmm5, dword [edx - 0x50]
movd xmm4, dword [edx - 0x70]
movd xmm6, dword [edx - 0x20]
movdqa xmm7, xmm1
pxor xmm1, xmm0
punpckldq xmm5, xmm3
movd xmm3, dword [edx - 0x60]
punpckldq xmm4, xmm3
movd xmm3, dword [edx]
punpcklqdq xmm4, xmm5
movd xmm5, dword [edx - 0x10]
punpckldq xmm5, xmm3
movd xmm3, dword [edx - 0x30]
sub edx, 0xffffff80
add ecx, 0xfffffff8
punpckldq xmm3, xmm6
movdqa xmm6, xmm4
pxor xmm6, xmm0
punpcklqdq xmm3, xmm5
pcmpgtd xmm6, xmm1
pand xmm7, xmm6
pandn xmm6, xmm4
movdqa xmm4, xmm2
pxor xmm2, xmm0
movdqa xmm1, xmm6
movdqa xmm6, xmm3
pxor xmm6, xmm0
por xmm1, xmm7
pcmpgtd xmm6, xmm2
pand xmm4, xmm6
pandn xmm6, xmm3
movdqa xmm2, xmm6
por xmm2, xmm4
jne 0x4e6570
movdqa xmm4, xmm1
movdqa xmm3, xmm2
cmp dword [ebp - 0x10], 0
pxor xmm4, xmm0
pxor xmm3, xmm0
pcmpgtd xmm3, xmm4
pand xmm1, xmm3
pandn xmm3, xmm2
por xmm3, xmm1
pshufd xmm2, xmm3, 0xee
movdqa xmm4, xmm3
movdqa xmm1, xmm2
pxor xmm4, xmm0
pxor xmm1, xmm0
pcmpgtd xmm1, xmm4
pand xmm3, xmm1
pandn xmm1, xmm2
por xmm1, xmm3
movdqa xmm3, xmm1
pshufd xmm2, xmm1, 0x55
pxor xmm3, xmm0
pxor xmm0, xmm2
pcmpgtd xmm0, xmm3
pand xmm1, xmm0
pandn xmm0, xmm2
por xmm0, xmm1
movd ecx, xmm0
je 0x4e668d
sub eax, edi
shl edi, 4
lea edx, [edi + ebx + 0x18]
nop dword [eax]
mov edi, dword [edx]
cmp ecx, edi
cmovae ecx, edi
add edx, 0x10
dec eax
jne 0x4e6680
mov edx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e6506
lea edi, [ebx + 4]
jmp 0x4e66a6
add edi, 0x10
dec esi
je 0x4e66be
cmp dword [edi], 0
je 0x4e66a0
push dword [edi - 4]
push 0
mov eax, dword [0x607460]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x4e66a0
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x4e66d6
push ebx
push 0
mov eax, dword [0x607460]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esi], 0
jmp 0x4e6522
Function at 0x4f67b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x4f68e5
js 0x4f6933
mov eax, dword [0x607474]
mov edi, edx
lea ecx, [esi*8]
movzx eax, byte [eax]
mov eax, dword [0x607460]
mov eax, dword [eax]
test eax, eax
jne 0x4f6801
mov esi, ecx
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4f691c
mov ecx, dword [0x607460]
mov dword [ecx], eax
mov ecx, esi
mov esi, ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4f691c
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, 0x10
jb 0x4f68bb
lea edx, [eax + esi*8 - 8]
cmp edx, eax
jb 0x4f68bb
lea edx, [eax + esi*8 - 4]
mov esi, eax
add esi, 4
cmp edx, esi
jb 0x4f68bb
mov esi, dword [ebp + 8]
lea edx, [esi - 1]
cmp edx, 0x1fffffff
ja 0x4f68bb
movdqa xmm0, xmmword [0x5b1c80]
mov ecx, esi
xor edx, edx
and ecx, 0xfffffffe
nop dword [eax]
movdqu xmm1, xmmword [edi + edx*8]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + edx*8], xmm4
add edx, 2
cmp ecx, edx
jne 0x4f6860
cmp ecx, esi
je 0x4f68ea
mov dword [ebp - 0x20], ebx
nop
mov esi, dword [edi + ecx*8 + 4]
mov edx, dword [edi + ecx*8]
cmp edx, esi
mov ebx, esi
cmovb ebx, edx
cmova esi, edx
mov dword [eax + ecx*8], ebx
mov dword [eax + ecx*8 + 4], esi
mov esi, dword [ebp + 8]
inc ecx
cmp esi, ecx
jne 0x4f68c0
mov ebx, dword [ebp - 0x20]
jmp 0x4f68ea
mov eax, 4
test esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
sete byte [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004e32b0
movsd xmm0, qword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x14]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
not eax
shr eax, 0x1a
and eax, 4
push esi
push eax
call fcn.0041a8c0
add esp, 8
ud2
call fcn.0041a880
ud2
Function at 0x51b6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [esi], 0
je 0x51b6d4
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 4]
jmp 0x51b6e3
mov edi, dword [esi + 4]
cmp edi, 6
jae 0x51b84f
add esi, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x51b7b8
dec edi
add esi, 0x10
nop word cs:[eax + eax]
nop dword [eax]
movsd xmm0, qword [esi - 0x10]
movsd xmm1, qword [esi - 8]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x38]
lea edx, [esp + 0xc]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push ebx
push dword [eax + 0x20]
call fcn.00517cb0
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x51b7de
lea ebx, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov ebx, dword [ebx]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x32]
movzx ebx, word [ebx + 4]
mov word [esp + 8], bx
movzx ebx, word [esp + 0x30]
cmp bx, word [ebp + 8]
mov ebx, dword [esp + 0x2c]
je 0x51b821
add esi, 0x10
add edi, 0xffffffff
jb 0x51b710
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x51b7cc
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
jmp 0x51b7cc
cmp dword [edx + 0x14], 0
jne 0x51b7cc
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x51b847
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
jmp 0x51b847
movzx esi, word [esp + 8]
mov edi, dword [esp]
mov word [edi + 0x16], si
mov esi, dword [esp + 4]
mov dword [edi + 0x12], esi
mov dword [edi + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [edi], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebx
mov word [edi + 0x10], cx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5a9414
push 5
push edi
call fcn.004287f0
add esp, 0xc
ud2

Function at 0x51b870
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x300
mov edi, dword [ebp + 8]
call fcn.0051b887
Function at 0x522560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x200
mov eax, dword [ebp + 8]
call fcn.00522577