joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, 0x210
push edi
mov ebx, 0x14058
push esi
push ebx
mov byte [ebp - 4], 0x31
mov byte [ebp - 3], 0x30
mov byte [ebp - 2], 0x34
mov byte [ebp - 1], 0x34
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 0x31
mov byte [ebp - 8], 0x41
mov byte [ebp - 7], 0x35
mov byte [ebp - 6], 0x31
mov byte [ebp - 5], 0x31
call fcn.00013b58
push 0x40
push 0x14268
call fcn.00013b58
push 0x50
lea eax, [ebp - 0x60]
pop edi
push edi
push eax
call fcn.00013b58
lea eax, [ebp - 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
push 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], 0x10660
mov dword [ebp - 0x4c], 0x1044e
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x10679
mov dword [ebp - 0x50], 0x10a68
mov dword [ebp - 0x48], 0x10ad4
mov dword [ebp - 0x40], 0x10b7a
mov dword [ebp - 0x14], 0x10cfa
mov byte [ebp - 0x28], 1
mov byte [ebp - 0x27], 1
mov byte [ebp - 0x25], 1
mov byte [ebp - 0x26], 1
mov byte [ebp - 0x24], 1
mov dword [ebp - 0x3c], 0x2c18
mov dword [ebp - 0x38], 0x24
mov dword [ebp - 0x34], 0x3c8
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x5c], 5
mov word [ebp - 0x22], 4
mov word [ebp - 0x1a], 4
call fcn.00013d1c
cmp eax, 0xffffffff
jae 0x103c3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
push eax
mov word [ebp - 0x1a], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00013d1c
cmp dword [ebp - 0x10], eax
jbe 0x103e8
mov dword [ebp - 0x10], eax
mov dword [ebp + 0xc], 0x14268
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10437
test byte [eax], 2
jne 0x10437
mov edi, dword [eax + 0x2c00]
push esi
push ebx
lea eax, [edi + 0x14cc]
push eax
call fcn.00013d16
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
call fcn.0001258a
test eax, eax
jne 0x10437
push eax
push eax
push eax
push eax
lea eax, [edi + 0x14cc]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
call fcn.00013538
add dword [ebp + 0xc], 4
cmp dword [ebp + 0xc], 0x142a8
jl 0x103ef
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4014e5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40157a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401537
cmp dword [ebp + 0x10], ebx
jne 0x40156e
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.004014e5
test eax, eax
jne 0x401549
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40151e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058aa
cmp eax, ebx
je 0x401581
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40157a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423cb0], ebx
jne 0x401577
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401577
jmp 0x40157a
Function at 0x402d83
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad84]
sub esi, dword [0x41ed90]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x423c20], eax
cmp esi, ebx
jle 0x402ee1
push dword [0x41ed8c]
call fcn.00402d6c
push ebx
push ebx
push dword [0x41ed90]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad80], esi
mov dword [0x40acf4], ebx
mov ebp, 0x412d80
mov eax, dword [0x41ed88]
sub eax, dword [0x41ed8c]
mov edi, 0x4000
cmp eax, edi
jg 0x402df8
mov edi, eax
push edi
mov esi, 0x41ad88
push esi
call fcn.00402d3a
test eax, eax
je 0x402ef3
add dword [0x41ed8c], edi
mov dword [0x412d10], esi
mov dword [0x412d14], edi
cmp dword [0x423bcc], ebx
je 0x402e4f
cmp dword [0x423ca0], ebx
jne 0x402e4f
mov eax, dword [0x41ad80]
sub eax, dword [0x41ad84]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed90]
mov dword [0x40acf4], eax
call fcn.00402c9b
pop ecx
mov ecx, 0x412cf8
mov dword [0x412d18], ebp
mov dword [0x412d1c], 0x8000
call fcn.0040608f
test eax, eax
js 0x402ef8
mov esi, dword [0x412d18]
sub esi, ebp
je 0x402ead
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402efd
cmp esi, dword [esp + 0x10]
jne 0x402efd
add dword [0x41ed90], esi
cmp dword [0x412d14], ebx
jne 0x402e1e
jmp 0x402eb9
cmp dword [0x412d14], ebx
jne 0x402ef8
cmp edi, ebx
je 0x402ef8
mov eax, dword [0x41ad84]
mov ecx, eax
sub ecx, dword [0x41ed90]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de2
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402eeb
push 0xfffffffffffffffd
pop eax
jmp 0x402eeb
push 0xfffffffffffffffe
jmp 0x402efa
Function at 0x402f01
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f2b
add eax, dword [0x423c18]
push edi
push edi
push eax
push dword [0x409014]
mov dword [0x41ad84], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d83
cmp eax, edi
jl 0x403024
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
cmp dword [ebp - 4], esi
jne 0x403020
push dword [ebp + 8]
add dword [0x41ad84], esi
call fcn.00402d83
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403023
cmp dword [ebp + 0x10], edi
jne 0x402fef
cmp dword [ebp + 8], edi
jle 0x40301b
mov esi, 0x41ad88
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402f9f
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
cmp edi, dword [ebp - 4]
jne 0x403020
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402feb
cmp dword [ebp + 0x14], edi
jne 0x402feb
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad84], eax
cmp dword [ebp + 8], 0
jg 0x402f92
jmp 0x40301b
push 0xfffffffffffffffe
jmp 0x403022
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402ffa
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
mov eax, dword [ebp - 4]
add dword [0x41ad84], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403023
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405496
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211d8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211d8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054d1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405618
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405635
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405638
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405667
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056ab
test edi, edi
jne 0x405672
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056a5

Function at 0x4056af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405720
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40570f
cmp dword [ebp + 0x14], 1
je 0x405711
cmp dword [ebp + 0x14], 2
je 0x405711
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405967
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421220
push esi
call fcn.004057c6
push esi
call fcn.004055a1
mov edi, eax
test edi, edi
jne 0x405988
xor eax, eax
jmp 0x4059e0
push edi
call fcn.004057e8
test byte [0x423c28], 0x80
je 0x4059a1
mov al, byte [edi]
test al, al
je 0x405984
cmp al, 0x5c
je 0x405984
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059c1
push esi
call fcn.00405883
test eax, eax
je 0x4059bb
test byte [eax], 0x10
je 0x4059e5
push esi
call fcn.00405940
push esi
call ebx
cmp eax, edi
jg 0x4059ac
push esi
call fcn.00405913
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059df
Function at 0x405c9a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004058aa
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cbe
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405df7
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421620], 0x4c554e
mov edi, 0x400
mov ebp, 0x421620
test esi, esi
je 0x405d02
push 1
push 0
push esi
call fcn.00405638
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dfd
cmp eax, edi
jg 0x405dfd
push edi
mov esi, 0x421f60
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dfd
cmp eax, edi
jg 0x405dfd
push esi
push ebp
push str._s_s_r_n
push 0x421a20
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a3f
push 4
push 0xc0000000
push esi
call fcn.00405638
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405df7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405df0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405df0
cmp edi, dword [esp + 0x18]
jne 0x405df0
push str._Rename__r_n
push esi
call fcn.004059e9
test eax, eax
jne 0x405e04
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057c6
add edi, 0xa
mov eax, edi
push ebx
push 0x421a20
add eax, esi
push eax
call fcn.004055f4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407634
add eax, 0xa
push eax
call fcn.004059e9
test eax, eax
je 0x405dbb
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e2b
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e20
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dbd
Function at 0x405e33
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405967
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e68
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x405ff9
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e83
test eax, eax
je 0x405fa4
test cl, 2
je 0x405fa4
push edi
push ebx
mov esi, 0x422360
push esi
call fcn.004057c6
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ea6
push str..
push esi
call edi
jmp 0x405eac
push ebx
call fcn.00405940
cmp byte [ebx], 0
jne 0x405eba
cmp byte [0x422360], 0x5c
jne 0x405ec2
push 0x407298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebx + eax]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405f99
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040555d
cmp byte [eax], 0
je 0x405f04
cmp byte [ebp - 0x18], 0
je 0x405f04
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f1a
mov al, byte [esi + 1]
test al, al
je 0x405f78
cmp al, 0x2e
jne 0x405f1a
cmp byte [esi + 2], 0
je 0x405f78
push esi
push edi
call fcn.004057c6
test byte [ebp - 0x148], 0x10
je 0x405f3f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f78
push dword [ebp + 0xc]
push ebx
call fcn.00405e33
jmp 0x405f78
push ebx
call fcn.00405618
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f70
test byte [ebp + 0xc], 4
je 0x405f68
push ebx
push 0xfffffffffffffff1
call fcn.0040484b
push 0
push ebx
call fcn.00405c9a
jmp 0x405f78
inc dword [0x423c88]
jmp 0x405f78
push ebx
push 0xfffffffffffffff2
call fcn.0040484b
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ee6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fa3
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ff8
cmp dword [ebp - 8], esi
je 0x405fe8
push ebx
call fcn.00405883
test eax, eax
je 0x405ff8
push ebx
call fcn.00405913
push ebx
call fcn.00405618
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ff0
test byte [ebp + 0xc], 4
je 0x405fe8
push ebx
push 0xfffffffffffffff1
call fcn.0040484b
push esi
push ebx
call fcn.00405c9a
jmp 0x405ff8
inc dword [0x423c88]
jmp 0x405ff8
push ebx
push 0xffffffffffffffe5
call fcn.0040484b
pop esi
pop ebx
leave
ret 8
Function at 0x405ffe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x422764], 0
jne 0x40603c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406012
mov dword [ecx*4 + 0x422760], eax
inc ecx
cmp ecx, 0x100
jl 0x40600d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406069
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40604a
not eax
pop ebp
ret 0xc
Function at 0x40ab70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40ac7a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.00409e10
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x40abb0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40fec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2e68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x62e15c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x104
call fcn.0042c9c7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0042ca8d
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x40ff43
push 0xf013f
push 0
push 0x5a9254
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ffb2
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x40ff6a
push 0xf003f
push 0
push 0x5a9254
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ffb2
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ff8b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ffb2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042c9da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2f26
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x62e15c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.004463a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41085e
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4107a3
xor ecx, ecx
jmp 0x4107bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402100
push 1
push 0x5a7cc8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00405220
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00410080
mov esi, eax
test esi, esi
je 0x410833
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41082c
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00402250
mov eax, esi
jmp 0x41090d
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x410858
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00402250
mov esi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41090b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403660
push 1
push 0x5a7cc8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00405220
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00410080
mov esi, eax
test esi, esi
je 0x4108ed
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x41082c
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00402250
mov eax, esi
jmp 0x41090d
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41090b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00402250
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ae55
mov esp, ebp
pop ebp
ret 4