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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00407f3a
sub esp, 0x10
test eax, eax
jne 0x4016a1
mov eax, dword [ebp - 0x22c]
test byte [ebp + 0x10], 2
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.0040848c
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x40792c
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
sub esp, 0x48
mov dword [0x4381c0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x20], 0x4381c0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407998
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x40799c
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], edx
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407c12
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407c40
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407c4b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407c12
push ecx
cmp eax, 0xffffffff
je 0x407ca0
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407c98
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407c91
test byte [ebp + 0xc], 4
jne 0x407ca0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407ca0
mov eax, 1
jmp 0x407ca2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407c75
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407cc6
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc
Function at 0x407cff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x64
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
div ecx
xor eax, eax
add word [ebp - 0xc], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x407d5e
dec esi
jne 0x407d0f
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407d69
Capabilities:
Read file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407da6
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407dad
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407dea
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407fee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x800
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407f3a
sub esp, 0x10
test eax, eax
je 0x40803c
mov word [ebx], 0
jmp 0x40808f
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov word [ebx + 0x7fe], 0
test esi, esi
jne 0x408035
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408035
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x40834a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4371c0
mov dword [esp + 4], eax
call fcn.00408179
push ebx
push ebx
mov dword [esp], 0x4371c0
call fcn.00407af6
push edx
test eax, eax
jne 0x40837b
xor eax, eax
jmp 0x4083f7
mov dword [esp], eax
mov ebx, eax
call fcn.00408235
push ecx
test byte [0x41b92c], 0x80
je 0x40839d
mov ax, word [ebx]
test ax, ax
je 0x408377
cmp ax, 0x5c
je 0x408377
sub ebx, 0x4371c0
sar ebx, 1
mov dword [esp], 0x4371c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x4371c0
cmp ebx, eax
jge 0x4083dc
call fcn.00408312
push edx
test eax, eax
je 0x4083cd
test byte [eax], 0x10
je 0x408377
mov dword [esp], 0x4371c0
call fcn.00407a84
push eax
jmp 0x4083a5
call fcn.004081ad
push eax
mov dword [esp], 0x4371c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4083fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x40843c
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408443
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x408dec
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x438224], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408e29
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408e14
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408e06
mov dword [ecx*4 + 0x438220], eax
inc ecx
cmp ecx, 0x100
jne 0x408dff
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408e4b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x438220]
jmp 0x408e33
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x406960
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406b15
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406b14
mov eax, dword [0x40b0f8]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406b0c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406ace
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x4069f0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406aef
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090e8]
add eax, 1
sub edi, 1
jne 0x406ad2
cmp edx, 0x1000
je 0x4069c0
mov edx, dword [0x40b0f8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406b20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x6fb06b8b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 8]
push edi
push eax
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.6fb0632d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, edi
jne 0x6fb06c66
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push 0x6fb01450
push dword [ebp - 8]
call fcn.6fb0c0bc
mov esi, eax
cmp esi, edi
jne 0x6fb06c66
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.6fb0cbd2
mov esi, eax
cmp esi, edi
jne 0x6fb06c66
call fcn.6fb0b9fb
test eax, eax
jne 0x6fb06c45
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0x28
push eax
push 0xf003f
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp + 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x6fb06c66
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp + 8]
cmp eax, 0x103
je 0x6fb06c43
call ebx
jmp 0x6fb06c5d
call ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
cmp esi, edi
je 0x6fb06c64
cmp esi, 5
jne 0x6fb06c66
mov esi, 0x800c0012
jmp 0x6fb06c66
xor esi, esi
cmp dword [ebp - 8], edi
je 0x6fb06c70
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], edi
je 0x6fb06c7a
push dword [ebp - 4]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x6fb06c83
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 0xc], 0x28
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.6fb0632d
mov ebx, eax
cmp ebx, edi
jne 0x6fb06d00
lea eax, [ebp - 8]
push eax
push 0x2001f
push edi
push 0x6fb01450
push dword [ebp - 4]
call fcn.6fb0c0bc
mov ebx, eax
cmp ebx, edi
jne 0x6fb06d00
lea eax, [ebp - 0x14]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, edi
jne 0x6fb06d00
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
call fcn.6fb0cc28
mov ebx, eax
cmp ebx, edi
jne 0x6fb06d00
xor ebx, ebx
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x6fb06d10
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], edi
je 0x6fb06d1a
push dword [ebp - 8]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x6fb06df2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.6fb0648f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6fb06e23
mov esi, 0x800c0005
jmp 0x6fb06eaf
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call fcn.6fb0cbd2
mov esi, eax
cmp esi, ebx
jne 0x6fb06eaf
call fcn.6fb0b9fb
test eax, eax
jne 0x6fb06e8e
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0x28
push eax
push 0xf003f
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp + 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x6fb06eaf
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp + 0xc]
cmp eax, 0x103
je 0x6fb06e8c
call edi
jmp 0x6fb06ea6
call edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
cmp esi, ebx
je 0x6fb06ead
cmp esi, 5
jne 0x6fb06eaf
mov esi, 0x800c0012
jmp 0x6fb06eaf
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x6fb06eb9
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x6fb06ec2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x28
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call fcn.6fb0648f
mov edi, eax
cmp edi, ebx
jne 0x6fb06f41
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x6fb06f41
push dword [ebp + 0x14]
lea eax, [ebp - 0x3c]
push eax
call fcn.6fb0cc28
mov edi, eax
cmp edi, ebx
jne 0x6fb06f41
lea eax, [ebp - 8]
push eax
push 0x2001f
lea eax, [ebp - 0x3c]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x6fb06f41
xor edi, edi
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x6fb06f51
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x6fb06f5b
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x6fb08906
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x6fb1223c], 0
jne 0x6fb0896b
push esi
push 1
pop esi
mov dword [0x6fb12238], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp ax, 0x40c
jne 0x6fb08932
and dword [0x6fb12238], 0
lea ecx, [ebp - 0xc]
push 0xa
push ecx
push 5
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x6fb0894b
and dword [0x6fb12238], eax
lea eax, [ebp - 0xc]
push 0x6fb01558
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x6fb08964
and dword [0x6fb12238], eax
mov dword [0x6fb1223c], esi
pop esi
mov eax, dword [0x6fb12238]
leave
ret
Function at 0x6fb0a311
Capabilities:
Encode data using xor
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
and dword [ebp - 4], eax
lea edi, [ebp - 0x48]
and dword [ebp - 8], 0
push 0x10
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x88]
push 0x40
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
pop ebx
cmp eax, ebx
jbe 0x6fb0a345
mov eax, ebx
mov esi, dword [ebp + 8]
mov ecx, eax
mov edx, ecx
lea edi, [ebp - 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, eax
lea edi, [ebp - 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor eax, eax
xor dword [ebp + eax - 0x48], 0x36363636
xor dword [ebp + eax - 0x88], 0x5c5c5c5c
add eax, 4
cmp eax, ebx
jb 0x6fb0a376
cmp dword [ebp + 0x18], esi
je 0x6fb0a444
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6fb0a444
push esi
lea eax, [ebp - 0x48]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x6fb0a444
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x6fb0a444
push 0x10
lea eax, [ebp + 8]
pop ecx
lea esi, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x9c]
lea edi, [ebp - 0xdc]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp + 8], 0x14
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x6fb0a444
mov esi, dword [ebp + 0x20]
push esi
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6fb0a444
mov eax, dword [ebp + 8]
push 0
add eax, 0x40
push eax
lea eax, [ebp - 0xdc]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x6fb0a444
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x6fb0a453
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x6fb0a45d
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push edi
push esi
push edi
push 2
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x6fb0a492
push edi
push edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, dword [ebp + 0x10]
push eax
mov dword [ebx], eax
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x6fb0a4c6
cmp dword [esi], edi
je 0x6fb0a489
push edi
push dword [ebx]
push 2
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x6fb0a489
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6fb0a48b