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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0xbdb7e2
mov eax, dword [ebp + 0x14]
jmp 0xbdb827
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0xbdb81e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0xbdb824
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x10

Function at 0xbdb941
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbdb996
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0xbdba0c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc823f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x18]
call fcn.00bdf300
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0xbdbaaa
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00bdf472
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
call fcn.00bdf4f8
cmp dword [ebp + 0x14], 0
je 0xbdbab8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
jne 0xbdbac6
lea edx, [ebp - 0x18]
mov dword [ebp - 0x40], edx
jmp 0xbdbaf0
push 0xffffffffffffffff
push 0xd8cfe8
lea ecx, [ebp - 0x38]
call fcn.00bdf316
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
or al, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00bdf357
mov edx, dword [ebp - 0x3c]
or edx, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0xbdbb28
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0x38]
call fcn.00bdf3b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00bdf3b1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0xbdd5d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov byte [ebp - 0x204], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_s
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.00be1c90
add esp, 4
mov dword [ebp - 0x20c], eax
push 0
lea ecx, [ebp - 0x210]
push ecx
push 4
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdd653
mov eax, 0x30000026
jmp 0xbdd74f
cmp dword [ebp - 0x210], 4
je 0xbdd666
mov eax, 0x30000027
jmp 0xbdd74f
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x208], 0
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 4], edx
jmp 0xbdd693
mov eax, dword [ebp - 0x208]
add eax, 1
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
cmp ecx, dword [ebp - 0x20c]
jae 0xbdd70c
mov eax, dword [ebp - 0x208]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x214]
mov al, byte [ebp + eax - 0x204]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
mov al, byte [ebp + edx - 0x204]
xor al, byte [ebp - 4]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
xor eax, eax
mov al, byte [ebp + edx - 0x204]
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0xbdd684
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdd738
mov eax, 0x30000028
jmp 0xbdd74f
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x20c]
je 0xbdd74d
mov eax, 0x30000029
jmp 0xbdd74f
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0xbdd756
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov byte [ebp - 0x204], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_d
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.00be1c90
add esp, 4
mov dword [ebp - 0x20c], eax
push 0
lea ecx, [ebp - 0x210]
push ecx
push 4
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdd7d5
mov eax, 0x30000026
jmp 0xbdd8e5
cmp dword [ebp - 0x210], 4
je 0xbdd7e8
mov eax, 0x30000027
jmp 0xbdd8e5
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x208], 0
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 4], edx
jmp 0xbdd815
mov eax, dword [ebp - 0x208]
add eax, 1
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
cmp ecx, dword [ebp - 0x20c]
jae 0xbdd88e
mov eax, dword [ebp - 0x208]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x214]
mov al, byte [ebp + eax - 0x204]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
mov al, byte [ebp + edx - 0x204]
xor al, byte [ebp - 4]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
xor eax, eax
mov al, byte [ebp + edx - 0x204]
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0xbdd806
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdd8c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x30000028
jmp 0xbdd8e5
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x20c]
je 0xbdd8e3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x30000029
jmp 0xbdd8e5
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0xbdd8ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov byte [ebp - 0x204], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00be2349
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
call fcn.00be1c90
add esp, 4
mov dword [ebp - 0x20c], eax
push 0
lea eax, [ebp - 0x210]
push eax
push 4
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdd992
mov eax, 0x30000026
jmp 0xbddaa2
cmp dword [ebp - 0x210], 4
je 0xbdd9a5
mov eax, 0x30000027
jmp 0xbddaa2
lea eax, [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x208], 0
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 4], ecx
jmp 0xbdd9d2
mov edx, dword [ebp - 0x208]
add edx, 1
mov dword [ebp - 0x208], edx
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x20c]
jae 0xbdda4b
mov eax, dword [ebp - 0x208]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x214]
mov al, byte [ebp + eax - 0x204]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
mov al, byte [ebp + edx - 0x204]
xor al, byte [ebp - 4]
mov ecx, dword [ebp - 0x208]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x208]
xor eax, eax
mov al, byte [ebp + edx - 0x204]
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0xbdd9c3
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbdda81
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x30000028
jmp 0xbddaa2
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x20c]
je 0xbddaa0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x30000029
jmp 0xbddaa2
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0xbddaa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
mov byte [ebp - 0x204], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x208], 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 4
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0xbddb36
mov eax, 0x30000017
jmp 0xbddc74
cmp dword [ebp - 0x20c], 4
jne 0xbddb4b
cmp dword [ebp - 0x218], 0x200
jb 0xbddb55
mov eax, 0x30000018
jmp 0xbddc74
push 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0xbddb84
mov eax, 0x30000019
jmp 0xbddc74
mov ecx, dword [ebp - 0x20c]
cmp ecx, dword [ebp - 0x218]
je 0xbddb9c
mov eax, 0x3000001a
jmp 0xbddc74
lea edx, [ebp + 0x10]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x218]
mov dword [ebp - 4], eax
jmp 0xbddbc9
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x218]
jae 0xbddc52
mov eax, dword [ebp - 0x210]
mov cl, byte [ebp + eax - 0x204]
mov byte [ebp - 0x214], cl
mov edx, dword [ebp - 0x210]
mov al, byte [ebp + edx - 0x204]
xor al, byte [ebp - 4]
mov ecx, dword [ebp - 0x210]
mov byte [ebp + ecx - 0x204], al
mov eax, dword [ebp - 0x210]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x21c]
mov al, byte [ebp + eax - 0x204]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x210]
mov byte [ebp + ecx - 0x204], al
mov edx, dword [ebp - 0x214]
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 4], eax
jmp 0xbddbba
lea ecx, [ebp - 0x204]
push ecx
call fcn.00be1abf
add esp, 4
mov dword [ebp - 0x208], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x208]
mov dword [edx], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0xbddc7b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc957b0
push 0xbe2b14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0xbddce7
jmp 0xbddd5b
mov edx, dword [ebp - 0x28]
push edx
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0xbddd05
jmp 0xbddd5b
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
je 0xbddd21
jmp 0xbddd5b
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str._
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
je 0xbddd3e
jmp 0xbddd5b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00bddd69
jmp 0xbddd83
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0xbf7f30
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0xbf7f90
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ecx
ret
call dword [sym.imp.kernel32.dll_GetLastError]
pop ecx
ret

Function at 0xbf7fa0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0xbf8009
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0xbf7ffa
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.advapi32.dll_RegFlushKey]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
call dword [sym.imp.kernel32.dll_GetLastError]
pop ecx
ret

Function at 0xbf80a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x18]
push eax
push 0x20019
push 0
dec esi
push ecx
push 0x80000002
mov dword [esp + 0x2c], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0xbf810e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0xbf8103
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0xbf8120
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x40
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x48]
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbf81b1
mov edx, dword [esp + 0x48]
push 1
push eax
push edx
call fcn.00bf81c0
add esp, 0xc
test eax, eax
je 0xbf819c
jbe 0xbf819c
mov edi, dword [sym.imp.advapi32.dll_RegDeleteValueA]
push esi
mov esi, eax
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 8]
push 0
push eax
push ecx
call fcn.00bf81c0
mov eax, dword [esp + 0x58]
add esp, 0xc
lea edx, [esp + 8]
push edx
push eax
call edi
dec esi
jne 0xbf8178
pop esi
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x40
ret
xor eax, eax
pop edi
add esp, 0x40
ret

Function at 0xbf81c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov edx, dword [esp + 0x110]
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push ebp
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.advapi32.dll_RegEnumValueA]
test eax, eax
jne 0xbf8261
mov bl, byte [esp + 0x120]
test bl, bl
jne 0xbf8226
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x14]
inc ebp
test bl, bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x104
je 0xbf8261
push eax
push eax
push eax
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x24]
push ecx
push edx
push ebp
push eax
call dword [sym.imp.advapi32.dll_RegEnumValueA]
test eax, eax
je 0xbf81fc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x407c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490948
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e3ec8]
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 edi, ecx
cmp dword [edi + 0x44], 0
je 0x407d87
cmp byte [edi + 0x49], 0
je 0x407d87
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x407d7b
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407cd6
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x407cf6
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x407d1b
dec eax
je 0x407d1f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x407d76
jmp 0x407d82
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x407d2f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x407d59
cmp edx, 0x10
jae 0x407d3e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x407d73
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x407d7f
test esi, esi
jne 0x407cea
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407bb0
jmp 0x407ce4
lea ecx, [ebp - 0x2c]
call fcn.00406590
xor al, al
jmp 0x407d89
lea ecx, [ebp - 0x2c]
call fcn.00406590
mov al, 1
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.0048e770
mov esp, ebp
pop ebp
ret
Function at 0x40a700
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4e3ec8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
push 0x104
mov dword [ebp - 0x118], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100.dll_Ordinal_310]
push str.Anakage
lea edx, [ebp - 0x118]
push edx
push esi
mov dword [ebp - 4], 0
call fcn.004019e0
add esp, 0xc
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40a7b3
push 0
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, esi
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.0048e770
mov esp, ebp
pop ebp
ret