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

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.00404990
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x404d48
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x404d6c
lea ecx, [esp + 0x18]
call fcn.004049a0
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00404e50
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404e2f
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x404de8
test esi, esi
jne 0x404e24
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00404d20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404d98
jmp 0x404e24
lea ecx, [esp + 0x24]
call fcn.00404990
push edi
push ebx
push ebp
call fcn.00404e50
add esp, 0xc
test edi, edi
je 0x404e11
push edi
push ebx
push ebp
call fcn.00404cb0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404e1b
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.004049a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.004049a0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x405840
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f837fd4
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xec3665f
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x52c7b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4ed015
lea edi, [esi - 0xec015]
push edi
jmp 0x52c7ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52c7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c7c0
mov eax, 1
add ebx, ebx
jne 0x52c7e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52c7f4
jne 0x52c813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c813
dec eax
add ebx, ebx
jne 0x52c800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52c7d8
add ebx, ebx
jne 0x52c80f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52c865
xor ecx, ecx
sub eax, 3
jb 0x52c82b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52c89a
sar eax, 1
mov ebp, eax
jmp 0x52c836
add ebx, ebx
jne 0x52c836
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c804
inc ecx
add ebx, ebx
jne 0x52c844
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c804
add ebx, ebx
jne 0x52c851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52c846
jne 0x52c862
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52c846
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52c884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52c876
jmp 0x52c7c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52c884
add edi, ecx
jmp 0x52c7c6
pop esi
mov edi, esi
mov ecx, 0x390b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52c8a2
cmp byte [edi], 0xe
jne 0x52c8a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52c8a7
lea edi, [esi + 0x12a000]
mov eax, dword [edi]
or eax, eax
je 0x52c91f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12ce0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12cee8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52c8d4
mov ecx, edi
jns 0x52c903
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12ceec]
or eax, eax
je 0x52c919
mov dword [ebx], eax
add ebx, 4
jmp 0x52c8f1
call dword [esi + 0x12cefc]
mov ebp, dword [esi + 0x12cef0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52c953
sub esp, 0xffffff80
jmp 0x47a010
Function at 0x402d00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x402da1
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
test eax, eax
jne 0x402da1
cmp edx, 1
jne 0x402d90
push esi
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004aa220
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402d80
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x402d7b
cmp eax, 6
jne 0x402d80
cmp dword [ebp - 0x110], esi
jbe 0x402d80
mov esi, 1
shl esi, 0xb
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
pop esi
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x4050a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push edx
push 0x101
push 0
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405123
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4e3c44
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x405123
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x405897
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4058d6
push 0x4e3c60
push 1
push 0x4e3c74
call fcn.00402d00
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405949
mov edi, 0x51d630
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call dword [0x4dc8a4]
call esi
mov dword [ebp + 0x10], eax
xor esi, esi
cmp dword [edi], ebx
jle 0x405949
nop dword [eax]
push 0x4e3c8c
push dword [eax + esi*4]
call fcn.004aed57
add esp, 8
test eax, eax
je 0x405917
mov eax, dword [ebp + 0x10]
push 0x4e3ca4
push dword [eax + esi*4]
call fcn.004aed57
add esp, 8
test eax, eax
je 0x405917
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4058e0
jmp 0x405949
mov ecx, dword [edi]
mov ebx, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x405944
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
nop dword [eax + eax]
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x405930
mov ebx, dword [ebp - 4]
lea eax, [ecx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.00405440
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp

Function at 0x40bc50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x40c6e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d09be
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x517b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [ebp - 4], 1
call fcn.0040bad0
mov ebx, eax
test ebx, ebx
je 0x40c7fe
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp - 0x14]
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov esi, dword [ecx]
mov ecx, ebx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
add eax, 0xffffff80
or ecx, eax
jge 0x40c77a
push 0x80
mov ecx, edi
call fcn.0040c490
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x80
jl 0x40c7f4
push esi
push 0x80
push ecx
push dword [ebp + 0x14]
mov dword [ecx - 0xc], 0x80
xor edx, edx
mov eax, dword [edi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov word [eax + 0x100], dx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
js 0x40c7f4
mov eax, dword [edi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ebx, eax
jge 0x40c7cc
push esi
mov ecx, edi
lfence
call fcn.0040c490
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x40c7f4
mov dword [ecx - 0xc], esi
xor eax, eax
mov ecx, dword [edi]
mov word [ecx + esi*2], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.0040b680
push 0x80004005
call fcn.0040b680
int3

Function at 0x40cd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40cdac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cdac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cd9a
cmp esi, edx
jae 0x40cdac
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40cd88
cmp esi, edx
jae 0x40cdac
cmp word [esi], 0
je 0x40cdac
mov eax, esi
lfence
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x414af0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1230
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov esi, dword [ebp + 0xc]
push 0x4e47f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x414c65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4e47f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x414c65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414bde
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [ebp - 0x21c]
test eax, eax
je 0x414be4
push 0
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x414be4
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x414c58
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.00412000
add esp, 4
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00411450
test al, al
jne 0x414c3b
test esi, esi
je 0x414c37
push esi
lea ecx, [ebp - 0x21c]
call fcn.004126b0
xor bl, bl
jmp 0x414c58
mov eax, dword [ebp - 0x228]
lea ecx, [eax + 4]
mov byte [eax + 0x48], 0
mov eax, dword [ecx]
mov dword [ecx], esi
test eax, eax
je 0x414c56
push eax
call fcn.004126b0
mov bl, 1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 8
Function at 0x418cb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1631
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [0x52dac0]
sub esi, dword [0x52dabc]
push 3
sar esi, 2
push esi
push 0x102f
push dword [edi + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, dword [0x52d6f8]
jbe 0x418d1e
push 0
lea eax, [esi - 1]
push eax
push 0x1013
lfence
push dword [edi + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [0x52e7dc]
lea eax, [ebp - 0x4c]
mov dword [0x52d6f8], esi
push 0x1e
push eax
call fcn.0046ac20
movsd xmm0, qword [0x52e7e0]
lea eax, [ebp - 0x4c]
add esp, 0x10
push eax
push dword [0x52e7e8]
lea eax, [ebp - 0x254]
sub esp, 8
movsd qword [esp], xmm0
push 0x4e4f60
push eax
call fcn.00402dc0
add esp, 0x18
lea eax, [ebp - 0x254]
push eax
push 0x419
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x38
lea eax, [ebp - 0x290]
mov dword [ebp - 0x298], 0x40
push 0
push eax
mov dword [ebp - 0x294], 0
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x274]
shrd ecx, eax, 0x14
push 0
shr eax, 0x14
push eax
push ecx
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x258], 0
push eax
call fcn.0046ab10
push eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 0
push 0x4e4fbc
push eax
call fcn.004a23a0
mov esi, eax
push 0x4e4fc0
mov byte [ebp - 4], 1
call fcn.004a27e0
push eax
push 0x4e4fc0
call fcn.004a29e0
add esp, 0x28
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
call fcn.004a24b0
mov ecx, dword [ebp - 0x29c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x418e47
call fcn.004a2a20
mov ecx, dword [ebp - 0x2a0]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x418e5a
call fcn.004a2a20
mov ecx, dword [ebp - 0x2a4]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x418e6d
call fcn.004a2a20
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 8
call fcn.004a2380
push eax
push 0x459
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 4], 0xa
test ecx, ecx
je 0x418ea1
call fcn.004a2a20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cc20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1c13
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
lea esi, [ebx + 0x24]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a71b8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0x4e454c
mov byte [ebp - 4], 2
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
call fcn.004a27e0
push eax
push 0x4e454c
call fcn.004a29e0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 4], 3
cmp eax, dword [ebx + 0x20]
je 0x41ccf2
mov dword [eax], esi
test esi, esi
je 0x41ccec
mov ecx, esi
call fcn.004a26e0
add dword [ebx + 0x1c], 4
jmp 0x41ccff
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebx + 0x18]
call fcn.0041c750
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x41cd0d
mov ecx, esi
call fcn.004a26e0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x24]
call fcn.0041cb20
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x41cd38
call fcn.004a2a20
mov byte [ebp - 4], 6
test esi, esi
je 0x41cd47
mov ecx, esi
call fcn.004a2a20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x41e330
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1d92
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0
push eax
push 0x4e5470
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41e49c
push 0x4e56f8
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5710
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5724
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e54c8
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54d4
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54f0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e550c
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e5730
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x21c], 0
call fcn.0041e020
mov esi, eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.0041e020
push esi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 1
call fcn.0041e140
lea ecx, [ebp - 0x228]
call fcn.00402fd0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41e488
mov eax, dword [eax]
jmp 0x41e48a
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x21c]
call fcn.00402fd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret