joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ecf93c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ecx]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], eax
je 0x4ecf9444
mov ebx, dword [ebp + 0x10]
add ebx, 0xf
and ebx, 0xfffffff8
jmp 0x4ecf9444
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
add eax, 7
and eax, 0xfffffff8
add edx, 8
lea edi, [ecx + 0x24]
mov dword [ebp - 0x210], 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4ecf9431
mov ecx, dword [ecx + 0x14]
lea ecx, [ecx + ecx + 7]
and ecx, 0xfffffff8
mov dword [edx], ecx
add eax, ecx
add edi, 4
add edx, 4
dec dword [ebp - 0x210]
jne 0x4ecf941d
mov esi, dword [esi + 8]
add ebx, eax
test esi, esi
jne 0x4ecf9400
push ebx
call fcn.4ed15481
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x214], eax
jne 0x4ecf9464
call fcn.4ed151a3
jmp 0x4ecf95f6
cmp dword [ebp + 8], ecx
je 0x4ecf9557
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0xbfbfbfbf
mov dword [eax + 4], ecx
lea ebx, [eax + 8]
jbe 0x4ecf9548
mov edi, 0x103
lea esi, [edi + 1]
cmp dword [ebp - 0x218], edi
je 0x4ecf9548
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp + 0x10]
jae 0x4ecf9548
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], esi
push dword [ebp - 0x230]
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, edi
mov dword [ebp - 0x218], eax
je 0x4ecf9548
push dword [ebp - 0x220]
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x220]
add dword [ebp - 0x210], eax
add ebx, eax
add esp, 0xc
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp + 0x14]
jb 0x4ecf94a0
mov eax, dword [ebp + 0x10]
add eax, 0xf
and eax, 0xfffffff8
add dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x4ecf9574
jmp 0x4ecf95f6
mov eax, dword [ebp - 0x210]
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
mov eax, dword [edi]
push eax
push edi
push dword [ebp - 0x214]
lea esi, [eax + 7]
and esi, 0xfffffff8
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, 8
add ebx, 0x24
mov dword [ebp - 0x218], 4
mov eax, dword [ebx]
test eax, eax
je 0x4ecf95c3
mov ecx, dword [eax + 0x14]
add ecx, ecx
push ecx
push dword [eax + 0x10]
mov eax, dword [ebp - 0x214]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, dword [edi]
add ebx, 4
add edi, 4
dec dword [ebp - 0x218]
jne 0x4ecf95a1
mov eax, dword [ebp - 0x214]
add dword [ebp - 0x214], esi
mov dword [eax], esi
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x4ecf956e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 0x10
Function at 0x4ecf96f7
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x365
cmp eax, edx
ja 0x4ecf9832
je 0x4ecf9824
add edx, 0xfffffff4
cmp eax, edx
ja 0x4ecf97a8
je 0x4ecf979d
sub eax, 0x1b5
je 0x4ecf9792
sub eax, 0x10f
je 0x4ecf9787
sub eax, 0x1d
je 0x4ecf977c
sub eax, 0x26
je 0x4ecf9771
sub eax, 0x4b
je 0x4ecf9766
dec eax
dec eax
je 0x4ecf975b
sub eax, 3
jne 0x4ecf9917
mov ecx, dword [ecx + 0x4c]
and ecx, 0x2000000
xor eax, eax
or eax, ecx
jmp 0x4ecf9910
mov ecx, dword [ecx + 0x4c]
and ecx, 0x4000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x40000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x8000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x10000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x20000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x80000000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x1000000
jmp 0x4ecf9752
sub eax, 0x35c
je 0x4ecf9816
dec eax
je 0x4ecf9808
dec eax
je 0x4ecf97fa
dec eax
je 0x4ecf97ec
dec eax
je 0x4ecf97de
dec eax
je 0x4ecf97d0
dec eax
jne 0x4ecf9917
mov ecx, dword [ecx + 0x4c]
and ecx, 0x20000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x40000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x80000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x100000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x200000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x400000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x800000
jmp 0x4ecf9752
mov ecx, dword [ecx + 0x4c]
and ecx, 0x10000
jmp 0x4ecf9752
mov edx, 0x4e4
cmp eax, edx
ja 0x4ecf98c0
je 0x4ecf98b8
sub eax, 0x36a
je 0x4ecf98ad
sub eax, 0x3a
je 0x4ecf98a2
sub eax, 4
je 0x4ecf9897
sub eax, 0xd
je 0x4ecf988c
dec eax
je 0x4ecf987e
sub eax, 0x12c
je 0x4ecf9873
dec eax
jne 0x4ecf9917
mov ecx, dword [ecx + 0x48]
and ecx, 4
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 2
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x100000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x80000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x40000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x20000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x10000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 1
jmp 0x4ecf990c
sub eax, 0x4e5
je 0x4ecf9906
dec eax
je 0x4ecf98fe
dec eax
je 0x4ecf98f6
dec eax
je 0x4ecf98ee
dec eax
je 0x4ecf98e3
sub eax, 0x68
jne 0x4ecf9917
mov ecx, dword [ecx + 0x48]
and ecx, 0x200000
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x80
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x40
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x20
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 0x10
jmp 0x4ecf990c
mov ecx, dword [ecx + 0x48]
and ecx, 8
xor eax, eax
or ecx, eax
je 0x4ecf9917
xor eax, eax
inc eax
jmp 0x4ecf9919
xor eax, eax
pop ebp
ret 4
Function at 0x4ed0a81d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov dword [ebp + 8], ecx
push 9
lea ecx, [eax + 2]
mov ax, word [ebp + 8]
pop edx
xor ax, word [ecx]
inc ecx
inc ecx
dec edx
test edx, edx
jg 0x4ed0a835
pop ebp
ret 4
Function at 0x4ed13f70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x628]
push eax
xor esi, esi
cmp dword [0x4edd70f4], esi
mov edi, ecx
push 1
mov dword [ebp - 0x630], edi
push esi
je 0x4ed13fb6
push dword [0x4edda764]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x4ed13fc7
push dword [0x4eddcdc4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4ed14194
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x62c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x628]
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x634], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, esi
mov dword [ebp - 0x624], eax
je 0x4ed14014
mov eax, dword [edi + 4]
shl eax, 3
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], esi
push esi
push 0x4ed141a4
mov ecx, edi
call fcn.4ed13e76
cmp dword [ebp - 0x62c], esi
jbe 0x4ed14158
mov edi, 0x104
cmp dword [ebp - 0x624], 0x103
je 0x4ed14152
cmp dword [0x4edd70f4], esi
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x644], 0x208
je 0x4ed1409e
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4ed140d4
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
mov dword [ebp - 0x624], eax
je 0x4ed14152
cmp eax, esi
jne 0x4ed1413a
cmp dword [0x4edd70f4], esi
jne 0x4ed14127
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x640]
add dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x630]
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ed13e76
inc dword [ebp - 0x620]
mov eax, dword [ebp - 0x620]
cmp eax, dword [ebp - 0x62c]
jb 0x4ed14032
mov edi, dword [ebp - 0x630]
cmp dword [edi], esi
je 0x4ed14188
cmp dword [ebp + 8], esi
je 0x4ed14181
push dword [ebp - 0x62c]
push dword [ebp - 0x634]
push dword [ebp - 0x628]
call fcn.4ec7d0ff
mov ecx, dword [edi + 0xc]
push eax
call fcn.4ecf93c5
mov dword [edi + 0x14], 1
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.4ec515ae
leave
ret 4
Function at 0x4ed14f03
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 8
mov edi, ecx
call fcn.4ec515d7
xor ebx, ebx
cmp eax, ebx
mov dword [edi + 4], eax
je 0x4ed150fb
mov dword [eax], ebx
mov eax, dword [edi + 4]
push esi
mov dword [eax + 4], ebx
xor esi, esi
mov al, 0x45
mov byte [ebp + esi - 0x110], al
mov al, byte [esi + 0x4ed15111]
inc esi
test al, al
jne 0x4ed14f3d
call dword [sym.imp.KERNEL32.dll_GetACP]
test eax, eax
jbe 0x4ed14f7b
xor edx, edx
push 0xa
pop ecx
div ecx
add dl, 0x30
mov byte [ebp + ebx - 0xc], dl
inc ebx
cmp ebx, 5
jge 0x4ed14f7b
jmp 0x4ed14f55
mov al, byte [ebp + ebx - 0xc]
mov byte [ebp + esi - 0x110], al
inc esi
dec ebx
jns 0x4ed14f6f
lea ecx, [ebp - 0x628]
push ecx
xor eax, eax
push 9
push eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x110]
push eax
push 0x80000001
mov byte [ebp + esi - 0x110], 0
mov dword [ebp - 0x630], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ed150e5
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x62c]
mov esi, 0x104
push dword [ebp - 0x628]
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x638], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x4ed150d5
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.4ecf9922
test eax, eax
je 0x4ed14fc2
push esi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.4ecf9922
test eax, eax
je 0x4ed14fc2
cmp dword [ebp - 0x630], ebx
je 0x4ed1507c
push 0x4ecdbbdc
lea eax, [ebp - 0x41c]
push eax
call fcn.4ec6becd
test eax, eax
jne 0x4ed1507c
lea eax, [ebp - 0x624]
push eax
mov ecx, edi
mov dword [ebp - 0x630], ebx
call fcn.4ed14a83
cmp eax, ebx
je 0x4ed150d5
mov ecx, dword [edi + 4]
mov dword [ecx], eax
jmp 0x4ed150d5
mov eax, dword [0x4edd7060]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.4ec7927e
mov ebx, eax
test ebx, ebx
je 0x4ed150d5
lea eax, [ebp - 0x624]
push eax
mov ecx, edi
call fcn.4ed14a83
mov esi, eax
test esi, esi
je 0x4ed150d5
push 0xc
call fcn.4ec515d7
test eax, eax
je 0x4ed150d5
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4ed150cc
mov dword [ecx + 4], eax
and dword [eax + 8], edx
jmp 0x4ed150d5
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
inc dword [ebp - 0x62c]
cmp dword [ebp - 0xc], 0
je 0x4ed14fc2
cmp dword [ebp - 0x628], 0
pop esi
je 0x4ed150fb
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret
Function at 0x4ed2900a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4ed2901d
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ed29019
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4ed2903e
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4ed2907d
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ed29073
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ed2907f
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4ed29063
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ed3e0be
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [0x4edd70f4], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
je 0x4ed3e0ef
push dword [0x4eddcdc8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
jmp 0x4ed3e100
push dword [0x4eddcdcc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x4ed3e16a
cmp dword [0x4edd70f4], esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
push esi
je 0x4ed3e137
push dword [0x4eddcdd0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4ed3e146
push dword [0x4eddcdd4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x4ed3e161
cmp dword [ebp - 8], 4
jne 0x4ed3e161
mov eax, dword [ebp - 0xc]
cmp eax, 0xfe
ja 0x4ed3e161
mov dword [0x4eddf7b8], eax
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4ed49fc2
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
and al, 2
sub esp, 0x6c
sub al, 2
neg al
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sbb eax, eax
inc eax
xor ebx, ebx
cmp esi, ebx
mov edi, eax
je 0x4ed49fef
neg eax
sbb eax, eax
and eax, 0x16
add eax, esi
jmp 0x4ed49ff1
xor eax, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.4ed49e2b
cmp eax, ebx
mov dword [ebp + 0x18], eax
je 0x4ed4a129
cmp edi, ebx
je 0x4ed4a129
add dword [ebp + 0x18], 0x16
cmp esi, ebx
je 0x4ed4a129
lea eax, [ebp - 0x6c]
mov byte [esi], 0xd7
mov byte [esi + 1], 0xcd
mov byte [esi + 2], 0xc6
mov byte [esi + 3], 0x9a
push eax
mov byte [esi + 4], bl
mov byte [esi + 5], bl
push 0x6c
push dword [ebp + 8]
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
call sub.GDI32.dll_GetEnhMetaFileHeader
test eax, eax
je 0x4ed4a0eb
fild dword [ebp - 0x24]
fidiv dword [ebp - 0x1c]
fld qword [0x4ecdb990]
fdiv st(1), st(0)
fild dword [ebp - 0x20]
faddp st(2)
fild dword [ebp - 0x18]
fdivp st(2)
fdivp st(1)
fmul qword [0x4ec5da60]
fstp dword [ebp + 8]
fild dword [ebp - 0x54]
fld dword [ebp + 8]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.4ec67a29
fild dword [ebp - 0x50]
movzx eax, ax
fld st(1)
mov byte [esi + 6], al
fmulp st(1)
mov byte [esi + 7], ah
call fcn.4ec67a29
movzx eax, ax
fild dword [ebp - 0x4c]
fld st(1)
mov byte [esi + 8], al
mov byte [esi + 9], ah
fmulp st(1)
call fcn.4ec67a29
fild dword [ebp - 0x48]
movzx eax, ax
fld st(1)
mov byte [esi + 0xa], al
fmulp st(1)
mov byte [esi + 0xb], ah
call fcn.4ec67a29
movzx eax, ax
fmul qword [0x4ecdb8c8]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], ah
call fcn.4ec67a29
movzx eax, ax
mov byte [esi + 0xe], al
mov byte [esi + 0xf], ah
jmp 0x4ed4a10e
mov byte [esi + 6], bl
mov byte [esi + 7], bl
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0xa], 0xd0
mov byte [esi + 0xb], 7
mov byte [esi + 0xc], 0xd0
mov byte [esi + 0xd], 7
mov byte [esi + 0xe], 0x60
mov byte [esi + 0xf], bl
lea edx, [esi + 0x14]
cmp esi, edx
mov ecx, esi
mov dword [ebp + 8], ebx
mov ax, bx
jae 0x4ed4a126
xor ax, word [ecx]
inc ecx
inc ecx
cmp ecx, edx
jb 0x4ed4a11d
mov word [ecx], ax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4ed53cd6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x58]
push eax
push 9
xor ebx, ebx
push ebx
push 0x4ed53e38
push 0x80000002
mov dword [0x4edd700c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ed53e1f
call fcn.4ec67b0f
cmp eax, ebx
jne 0x4ed53d27
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ed53e1f
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x4ed53d19
push esi
mov dword [ebp - 0x60], ebx
push edi
push 8
pop edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], edi
push dword [ebp - 0x58]
mov dword [ebp - 0x64], 0x20
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
jne 0x4ed53e08
cmp dword [ebp - 0x5c], 6
movzx esi, word [ebp - 0xa]
mov word [ebp - 0xa], bx
je 0x4ed53d90
cmp dword [ebp - 0x5c], 7
jne 0x4ed53e08
mov eax, dword [ebp - 8]
add eax, 0xffffffd0
cmp ax, 6
ja 0x4ed53e08
lea eax, [esi - 0x31]
cmp ax, di
ja 0x4ed53e08
push 0x4ed53e2c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4ed53e08
cmp dword [ebp - 0x5c], 7
jne 0x4ed53dc4
movzx ecx, word [ebp - 8]
movzx eax, si
imul eax, eax, 0xa
lea esi, [eax + ecx - 0x211]
jmp 0x4ed53dca
movzx esi, si
sub esi, 0x31
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x54]
push eax
call fcn.4ec7927e
mov edi, eax
cmp edi, ebx
je 0x4ed53e08
cmp dword [0x4edd700c], ebx
jne 0x4ed53e00
push 0x40
call fcn.4ec515d7
cmp eax, ebx
mov dword [0x4edd700c], eax
je 0x4ed53e14
push 0x40
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x4edd700c]
mov dword [eax + esi*4], edi
inc dword [ebp - 0x60]
cmp dword [ebp - 0x6c], ebx
je 0x4ed53d36
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret

Function at 0x4ed54a21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ed54a4e
xor eax, eax
jmp 0x4ed54a70
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed54a76
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
cmp ebx, dword [ebp + 8]
je 0x4ed54a86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4ed54a6f
xor esi, esi
inc esi
jmp 0x4ed54a7b
Function at 0x4ed6632f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
mov ebx, dword [0x4edd717c]
mov dword [ebp - 4], ebx
je 0x4ed66401
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, 0x4ecdeefc
push edi
push 0x4ecdeef0
push ebx
call esi
test eax, eax
je 0x4ed663ff
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
call ebx
test eax, eax
je 0x4ed663ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ed663ff
cmp dword [eax], 0x2e435269
jne 0x4ed663ff
cmp dword [eax + 4], 0
jne 0x4ed663ff
push edi
lea ecx, [eax + 0x10]
push 0x4ed66414
push dword [ebp - 4]
mov dword [0x4eddf828], ecx
mov eax, dword [eax + 0xc]
mov dword [0x4eddf834], eax
call esi
test eax, eax
je 0x4ed663ff
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4ed663ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ed66406
cmp dword [eax], 0x2e435269
jne 0x4ed66406
cmp dword [eax + 4], 1
jne 0x4ed66406
lea ecx, [eax + 0x10]
mov dword [0x4eddf82c], ecx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [0x4eddf830], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x4ed72034
mov dword [eax + 4], 0x4ed662be
mov dword [eax + 8], 0x4ed66294
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [0x4eddf82c], 0x4eddf838
jmp 0x4ed663ff
Function at 0x4ed719f5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
movzx esi, byte [eax]
lea ecx, [eax + 1]
movzx eax, byte [ecx]
xor edx, edx
shl esi, 8
push edi
mov edi, dword [0x4eddf834]
inc edx
add esi, eax
cmp edi, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jb 0x4ed71ba2
mov eax, dword [0x4eddf828]
push ebx
mov ecx, dword [ebp - 8]
add ecx, edi
shr ecx, 1
movzx edx, byte [eax + ecx*8 - 8]
movzx ebx, byte [eax + ecx*8 - 7]
shl edx, 8
add edx, ebx
cmp edx, esi
jae 0x4ed71a51
lea edx, [ecx + 1]
mov dword [ebp - 8], edx
jmp 0x4ed71a56
jbe 0x4ed71a5b
lea edi, [ecx - 1]
cmp edi, dword [ebp - 8]
jae 0x4ed71a2f
cmp edi, dword [ebp - 8]
jb 0x4ed71ba1
mov ebx, dword [ebp - 0xc]
lea ecx, [eax + ecx*8]
mov esi, dword [ecx - 4]
mov edi, dword [ecx + 4]
add esi, eax
add edi, eax
mov al, byte [ebx]
mov dword [ebp - 8], 0xffff
mov dword [ebp - 0x10], 1
mov byte [ebp - 1], al
jmp 0x4ed71b99
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ebx, ecx
jb 0x4ed71b07
jmp 0x4ed71ba1
mov al, byte [ebp - 1]
mov edx, dword [ebp - 8]
and al, 0x7f
movzx ax, al
inc edx
imul ax, dx
inc dword [ebp - 0x10]
movzx eax, ax
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 1]
inc ebx
cmp dword [eax*4 + 0x4eddd5d8], 2
mov al, byte [ebx]
mov byte [ebp - 1], al
jl 0x4ed71b07
test al, al
je 0x4ed71b0d
cmp ebx, ecx
jae 0x4ed71b0d
movzx eax, al
mov eax, dword [eax*4 + 0x4eddd5d8]
and eax, 0x80000001
jns 0x4ed71ae6
dec eax
or eax, 0xfffffffe
inc eax
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x4ed71b07
lea eax, [ecx - 2]
cmp ebx, eax
ja 0x4ed71b0d
cmp byte [ebx + 1], 0xec
je 0x4ed71b07
cmp ebx, eax
je 0x4ed71b0d
cmp byte [ebx + 2], 0xec
jne 0x4ed71b0d
cmp byte [ebp - 1], 0x7f
ja 0x4ed71a9a
cmp esi, edi
jae 0x4ed71b8c
mov ecx, dword [ebp - 0x10]
push 2
pop edx
movzx eax, word [esi]
cmp cx, ax
je 0x4ed71b3d
jb 0x4ed71b8c
cmp esi, edi
jae 0x4ed71b8c
cmp byte [esi], 2
jne 0x4ed71b2e
add esi, edx
jmp 0x4ed71b37
add esi, edx
movzx eax, word [esi]
lea esi, [esi + eax*2 + 2]
cmp esi, edi
jae 0x4ed71b8c
jmp 0x4ed71b17
add esi, edx
cmp cx, dx
jne 0x4ed71b4f
push edx
push dword [ebp + 0xc]
call fcn.4ed70d37
jmp 0x4ed71b8c
movzx eax, word [esi]
add esi, edx
test ax, ax
mov dword [ebp - 0xc], eax
jbe 0x4ed71b8c
movzx eax, word [esi]
cmp word [ebp - 8], ax
je 0x4ed71b79
jbe 0x4ed71b85
add dword [ebp - 0xc], 0xffff
inc esi
inc esi
cmp word [ebp - 0xc], 0
jbe 0x4ed71b8c
jmp 0x4ed71b5c
movzx eax, cx
push eax
push dword [ebp + 0xc]
call fcn.4ed70d37
movzx eax, word [ebp - 0xc]
lea esi, [esi + eax*2]
cmp byte [ebp - 1], 0x80
jb 0x4ed71ba1
mov eax, dword [ebp + 8]
cmp ebx, dword [eax]
ja 0x4ed71ba1
cmp esi, edi
jb 0x4ed71a8c
pop ebx
pop edi
pop esi
leave
ret 8