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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x716d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x716e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x716ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x716eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x72f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00718dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x716eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x716e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc

Function at 0x717000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x717131
push esi
call fcn.0071a145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00709080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x717131
push 0
push ebp
call fcn.007093a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00709260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x71708b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007092f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x717121
push 0x72f918
push edi
call fcn.007183f0
push eax
push ebx
push esi
call fcn.00716f60
push 0x72f8f8
push edi
call fcn.007183f0
push eax
push ebx
push esi
call fcn.00716f60
push 0x72f8d8
push edi
call fcn.007183f0
push eax
push ebx
push esi
call fcn.00716f60
push 0x72f8c0
push edi
call fcn.007183f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00716f60
push 0x72f8a0
push edi
call fcn.007183f0
push eax
push ebx
push esi
call fcn.00716f60
push 0x72f888
push edi
call fcn.007183f0
push eax
push ebx
push esi
call fcn.00716f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7181b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00718140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00718140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00718140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00718140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x718bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x718c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x72a87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x718c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x718c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40272c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040371c
test esi, esi
jne 0x402762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040380c
jmp 0x402780
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bf8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x412018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ebc
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ef8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ebc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x412018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x412018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403524
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413034], 0
je 0x403585
cmp word [0x413208], 0xd7b2
jne 0x40354d
cmp dword [0x413210], 0
jbe 0x40354d
mov eax, 0x413204
call dword [0x413220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412084
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035ac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x412024], 0
jne 0x4035a1
push 0
push 0x41207c
push 0x412084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x413035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036a0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404416
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040387c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404400
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40441d
lea eax, [ebp - 0x10]
call fcn.0040371c
ret

Function at 0x404a38
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4120dc], 0
jne 0x404b0a
mov byte [0x4120dc], 1
xor eax, eax
mov dword [0x4120d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404a80
cmp dword [esp + 0x1c], 3
jne 0x404ae0
cmp dword [esp + 0x20], 0x33
jbe 0x404ae0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404b14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404b0a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b44
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404b0a
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404b0a
cmp byte [esp + 9], 0
jne 0x404b0a
jmp 0x404af5
push 0
push 0x404b44
push 0x404b4c
call sub.KERNEL32.DLL_GetProfileIntA
test eax, eax
je 0x404b0a
mov eax, dword [0x4120d0]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4120d4], eax
add esp, 0xac
ret

Function at 0x4055f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4056bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040371c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4056a9
mov eax, ebx
mov edx, 0x73
call fcn.00403bc4
push 0
lea eax, [ebp - 8]
push eax
push 0x73
mov eax, ebx
call fcn.00403aec
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebx]
mov eax, 0x4056d4
call fcn.00403b7c
test eax, eax
jne 0x40568a
mov eax, ebx
call fcn.0040371c
jmp 0x4056a9
push ebx
mov edx, dword [ebx]
mov eax, 0x4056e0
call fcn.00403b7c
mov ecx, eax
dec ecx
sub ecx, 0x50
mov eax, dword [ebx]
mov edx, 0x51
call fcn.00403af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4056c6
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x4056e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40578c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_OpenFile
mov esi, eax
cmp esi, 0xffffffff
je 0x405771
lea eax, [ebp - 8]
mov edx, 0x186a0
call fcn.00403bc4
push 0
lea eax, [ebp - 0xc]
push eax
push 0x186a0
lea eax, [ebp - 8]
call fcn.00403aec
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x405771
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 8]
mov eax, 0x4057a4
call fcn.00403b7c
test eax, eax
jle 0x405771
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405793
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x4057bc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40583e
push dword fs:[eax]
mov dword fs:[eax], esp
xor bl, 1
neg bl
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test byte [ebp + 0x10], bl
je 0x405823
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00405cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405845
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x40589c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x405a2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403894
cmp eax, 2
jl 0x405a01
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x405a44
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x150]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4059d9
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x14c], 0x10
je 0x4059a2
mov eax, dword [ebp - 0xc]
mov edx, 0x405a50
call fcn.004039e0
je 0x4059c4
mov eax, dword [ebp - 0xc]
mov edx, 0x405a5c
call fcn.004039e0
je 0x4059c4
lea eax, [ebp - 0x158]
mov ecx, 0x405a68
mov edx, dword [ebp - 8]
call fcn.004038e0
mov eax, dword [ebp - 0x158]
call fcn.0040589c
jmp 0x4059c4
mov eax, dword [ebp - 8]
call fcn.00403a94
mov esi, eax
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
jne 0x4059c4
push 0x20
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push esi
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x405921
push ebx
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 4]
call fcn.00403a94
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x405a01
push 0x20
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
push ebx
call sub.KERNEL32.DLL_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a33
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403740
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403740
ret
Function at 0x405bb8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x405cc8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.004053f4
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.004037b4
xor edx, edx
mov eax, 2
call fcn.00405164
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00405184
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x405c98
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040387c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004053f4
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.004039e0
jne 0x405c89
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, edi
mov eax, esi
call fcn.004051a4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x405c3a
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ccf
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403740
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x4060bc
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406149
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x406127
test ebx, ebx
je 0x406127
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.0040384c
jmp 0x40612e
mov eax, esi
call fcn.0040371c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406150
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x406468
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4064c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x15]
mov ecx, 0x11
call fcn.0040387c
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.004053b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064cf
lea eax, [ebp - 0x1c]
call fcn.0040371c
ret

Function at 0x4064d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406553
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040387c
lea eax, [ebp - 0x10c]
mov edx, 0x406568
call fcn.0040389c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004053f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40655a
lea eax, [ebp - 0x10c]
call fcn.0040371c
ret
Function at 0x406670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406713
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x4136c0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4136c4], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x4136c4], eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40671a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x406724
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4067e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4136c0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4136c4], eax
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00403bc4
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebx]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x4136c4], eax
cmp dword [0x4136c4], 0
jne 0x4067bb
mov eax, dword [ebx]
call fcn.00403a94
mov edx, eax
mov eax, ebx
call fcn.0040384c
jmp 0x4067c2
mov eax, ebx
call fcn.0040371c
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067ef
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x4067f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
mov eax, dword [ebp + 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4068cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4136c0
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x4136c4], eax
cmp dword [ebp + 8], 0
jne 0x406865
lea eax, [ebp + 8]
mov edx, 0x4068e4
call fcn.004037b4
mov eax, dword [ebp + 8]
call fcn.00403894
push eax
lea eax, [ebp + 8]
call fcn.00403aec
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4136c4], eax
cmp dword [0x4136c4], 0
sete bl
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068d3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
lea eax, [ebp + 8]
call fcn.0040371c
ret

Function at 0x4068e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40698d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4136c0
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x4136c4], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4136c4], eax
cmp dword [0x4136c4], 0
sete bl
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406994
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x4069a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406a22
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x406a38
call fcn.00405850
test al, al
jne 0x406a0c
mov eax, dword [ebp - 4]
call fcn.00403a94
mov ebx, eax
push ebx
push esi
call sub.advapi32.dll_RegDeleteKeyA
push 0
push 0x4136c0
push 0
push 6
push 2
push 0
push 0
push ebx
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [0x4136c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a29
lea eax, [ebp - 4]
call fcn.0040371c
ret