joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012cd46
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018f120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.101232f8
mov dword [ebp - 0x14], eax
cmp dword [0x1019a008], esi
jne 0x1012ce39
push 0x800
push esi
push 0x10170e7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1012cdc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1012cf19
push esi
push esi
push 0x10170e7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1012cf19
push 0x10170e94
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1012cf19
push eax
call ebx
push 0x10170ea0
push edi
mov dword [0x1019a008], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10170eb0
push edi
mov dword [0x1019a00c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x1019a010], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1019a018], eax
test eax, eax
je 0x1012ce36
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1019a014], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1012ce5e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1012ce51
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1012ce73
push 4
pop eax
jmp 0x1012cf1b
cmp dword [ebp - 0x14], esi
je 0x1012ce73
push dword [0x1019a008]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1012ce58
mov eax, dword [0x1019a014]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1012ced1
cmp dword [0x1019a018], edi
je 0x1012ced1
push eax
call ebx
push dword [0x1019a018]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1012ced1
test eax, eax
je 0x1012ced1
call ecx
test eax, eax
je 0x1012cec6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1012cec6
test byte [ebp - 8], 1
jne 0x1012ced1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1012cf01
mov eax, dword [0x1019a00c]
cmp eax, edi
je 0x1012cefe
push eax
call ebx
test eax, eax
je 0x1012cefe
call eax
mov esi, eax
test esi, esi
je 0x1012cefe
mov eax, dword [0x1019a010]
cmp eax, edi
je 0x1012cefe
push eax
call ebx
test eax, eax
je 0x1012cefe
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1019a008]
call ebx
test eax, eax
je 0x1012cf19
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1012cf1b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10119678
mov esp, ebp
pop ebp
ret
Function at 0x402871
Capabilities:
Check mutex on windows

Disassembly:
push 0xd0
mov eax, 0x56ad33
call fcn.0054b87d
mov edi, ecx
push str.skeStart
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4028aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4028f6
push ebx
call fcn.0040d245
pop ecx
call fcn.0040cd8e
call fcn.0040a05a
mov ecx, edi
mov eax, dword [eax + 0x40]
mov dword [eax + 0x3c], 0x1388
call fcn.0040293d
push ebx
lea ecx, [ebp - 0xdc]
call fcn.004029d9
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.004093bb
lea ecx, [ebp - 0xdc]
call fcn.00408e44
xor eax, eax
call fcn.0054b84b
ret

Function at 0x40293d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5cb660]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4029cd
push esi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402988
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4029cc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push esi
push esi
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4029c1
xor esi, esi
inc esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054b83d
leave
ret
Function at 0x4046f1
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
xor ecx, ecx
xor esi, esi
mov al, byte [edi]
test al, al
je 0x40478a
push ebx
movsx eax, al
mov ebx, dword [eax*4 + 0x5ca400]
cmp ebx, 0xffffffff
je 0x404782
mov eax, esi
sub eax, 0
je 0x40477d
sub eax, 1
je 0x404760
sub eax, 1
je 0x404744
sub eax, 1
jne 0x404780
cmp ecx, dword [ebp + 0x10]
jge 0x404740
mov eax, dword [ebp + 0xc]
shl dl, 6
or dl, bl
mov byte [ecx + eax], dl
inc ecx
xor esi, esi
jmp 0x404780
cmp ecx, dword [ebp + 0x10]
jge 0x40475c
mov eax, ebx
shl dl, 4
sar eax, 2
and al, 0xf
or al, dl
mov edx, dword [ebp + 0xc]
mov byte [ecx + edx], al
inc ecx
push 3
jmp 0x40477a
cmp ecx, dword [ebp + 0x10]
jge 0x404778
mov eax, ebx
shl dl, 2
sar eax, 4
and al, 3
or al, dl
mov edx, dword [ebp + 0xc]
mov byte [ecx + edx], al
inc ecx
push 2
pop esi
jmp 0x404780
xor esi, esi
inc esi
mov edx, ebx
inc edi
mov al, byte [edi]
test al, al
jne 0x40470a
pop ebx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x4050fd
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x56b428
call fcn.0054b87d
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0x10]
test ecx, ecx
je 0x4051bb
lea eax, [ecx - 1]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x57c31c
call fcn.00401c3d
push ecx
mov esi, esp
mov byte [ebp - 4], 2
push edi
mov dword [ebp - 0x1c], esi
call fcn.00401ea5
pop ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], bl
call fcn.004063ea
test eax, eax
jne 0x40517b
push ecx
mov esi, esp
push edi
mov dword [ebp - 0x1c], esi
call fcn.00401ea5
pop ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.004059e8
cmp eax, dword [ebp + 0x10]
jbe 0x4051bb
push ebx
push ecx
mov esi, esp
push edi
mov dword [ebp + 0x10], esi
call fcn.00401ea5
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004054ad
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402327
jmp 0x4051bd
xor ebx, ebx
mov ecx, edi
call fcn.00402327
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, ebx
call fcn.0054b84b
ret 0xc

Function at 0x4052b7
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x56b484
call fcn.0054b87d
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x405361
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0x10], eax
call fcn.00401ea5
pop ecx
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0040547f
test eax, eax
je 0x40535e
mov ebx, edi
mov esi, edi
cmp dword [ebp + 0xc], ebx
jle 0x405359
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405325
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x405305
jmp 0x405328
xor ebx, ebx
inc ebx
push ecx
mov esi, esp
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00401ea5
pop ecx
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
call fcn.0040547f
test eax, eax
je 0x405359
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x405328
mov eax, dword [ebp + 8]
jmp 0x405363
mov eax, dword [ebp + 8]
mov ebx, edi
lea ecx, [eax - 0x10]
call fcn.00402327
mov eax, ebx
call fcn.0054b84b
ret 8
Function at 0x405375
Capabilities:
Delete file

Disassembly:
push 0x138
mov eax, 0x56b4c4
call fcn.0054b8b0
mov edi, ecx
and dword [ebp - 4], 0
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x57bef9
call fcn.00401c3d
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x57c31c
mov byte [ebp - 4], 1
call fcn.00401c3d
mov ebx, dword [ebp + 8]
push ecx
mov esi, esp
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov dword [ebp - 0x11c], esi
push ebx
call fcn.00401ea5
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x118]
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00406465
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00402327
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.005543b0
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov eax, dword [eax - 0xc]
inc eax
cmp eax, 0x104
jae 0x405479
xor ecx, ecx
mov dword [ebp - 0x138], 3
mov byte [ebp + eax - 0x114], cl
lea eax, [ebp - 0x114]
mov dword [ebp - 0x134], eax
mov eax, 0x414
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12a], ecx
mov dword [ebp - 0x126], ecx
mov dword [ebp - 0x122], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, ebx
call fcn.00402327
call fcn.0054b85f
ret 4
call fcn.0054bceb
int3

Function at 0x4055b6
Capabilities:
Move file

Disassembly:
push 0xc
mov eax, 0x56b545
call fcn.0054b87d
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x40569b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x40569b
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x10], esi
call fcn.00401ea5
pop ecx
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0040547f
test eax, eax
je 0x405698
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0x10], eax
call fcn.00401ea5
pop ecx
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.004052b7
xor edi, edi
mov ebx, edi
mov esi, edi
cmp dword [ebp + 0x10], ebx
jle 0x405693
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40565f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x40563c
jmp 0x405662
xor ebx, ebx
inc ebx
push ecx
mov esi, esp
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00401ea5
pop ecx
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
call fcn.0040547f
test eax, eax
jne 0x405693
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x405662
mov eax, dword [ebp + 8]
jmp 0x40569d
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [eax - 0x10]
call fcn.00402327
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, ebx
call fcn.0054b84b
ret 0xc
Function at 0x405a8a
Capabilities:
Create directory

Disassembly:
push 0x14
mov eax, 0x56b677
call fcn.0054b87d
mov esi, ecx
push 1
push 0xa
lea eax, [ebp - 0x1c]
push eax
call fcn.00404e25
and dword [ebp - 4], 0
push str.AppDataLocal_
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402a79
push str.Ctlmon
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00402a79
add esp, 0x18
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402327
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00402327
push 1
push 0xa
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00404e25
push str.AppDataRoamingWindows_Ctlmon
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.00402a79
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 7
lea ecx, [ecx - 0x10]
call fcn.00402327
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp + 0xc]
push 0x57c31c
sub eax, 3
je 0x405b45
sub eax, 1
lea eax, [ebp - 0x10]
jmp 0x405b48
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00402a79
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402327
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, dword [ebp + 8]
call fcn.0054b84b
ret 8
Function at 0x405d94
Capabilities:
Enumerate processes

Disassembly:
push 0x41c
mov eax, 0x56b718
call fcn.0054b8b0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x405f50
call sub.KERNEL32.dll_GetCurrentProcessId
lea ecx, [ebp + 8]
mov dword [ebp - 0x420], eax
call fcn.00404dbf
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405f50
push edi
push esi
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405f49
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x1c], 0
jne 0x405e1d
mov eax, dword [ebp - 0x420]
cmp eax, dword [edi + 8]
je 0x405f3a
lea ecx, [ebp - 0x414]
call fcn.00401d03
push dword [edi + 8]
mov byte [ebp - 4], bl
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x41c], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x424], 0x103
jne 0x405eef
lea eax, [edi + 0x24]
test eax, eax
jne 0x405e6a
xor ecx, ecx
jmp 0x405e76
push eax
call fcn.005502e0
pop ecx
mov ecx, eax
lea eax, [edi + 0x24]
push ecx
push eax
lea ecx, [ebp - 0x414]
call fcn.0040253e
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
push dword [ebp - 0x41c]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x405eef
cmp dword [ebp - 0x418], 0
je 0x405ec9
lea eax, [ebp - 0x410]
push eax
call fcn.005502e0
pop ecx
mov ecx, dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0040253e
cmp dword [ebp + 0x14], 0
je 0x405eef
lea eax, [ebp - 0x410]
push eax
call fcn.005502e0
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.0040253e
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x414]
call fcn.00404dbf
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403608
pop ecx
pop ecx
test al, al
je 0x405f28
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x405f67
inc dword [eax]
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00402327
push edi
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405e08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, ebx
call fcn.0054b85f
ret 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0x10]
call fcn.00402327
jmp 0x405f52

Function at 0x405fe3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
je 0x406016
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40601f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebp
ret 4
Function at 0x4060ba
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x56b7d5
call fcn.0054b87d
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00406081
test eax, eax
je 0x40610a
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40612d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402327
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, esi
call fcn.0054b84b
ret 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
test eax, eax
push dword [ebp - 0x10]
cmovne ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
jmp 0x40610d

Function at 0x406164
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x7e4
mov eax, 0x56b80f
call fcn.0054b8b0
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x7ec], edi
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e4], 0
lea eax, [ebp + 0x14]
and dword [ebp - 0x7f0], 0
add ebx, 0xfffffff0
push eax
lea eax, [ebp - 0x7e8]
mov dword [ebp - 4], 2
push eax
add esi, 0xfffffff0
call fcn.00406081
test eax, eax
jne 0x4061df
push 0x57bef9
mov ecx, edi
call fcn.00401c3d
mov ecx, ebx
call fcn.00402327
mov ecx, esi
call fcn.00402327
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
jmp 0x4062a0
lea eax, [ebp - 0x7f0]
push eax
lea eax, [ebp - 0x7e4]
push eax
xor eax, eax
push eax
push 0x20019
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x7e8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40621e
push dword [ebp - 0x7e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x57bef9
jmp 0x406285
lea eax, [ebp - 0x7ec]
mov dword [ebp - 0x7ec], 0x7d0
push eax
lea eax, [ebp - 0x7e0]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x7e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7e4]
test eax, eax
je 0x406267
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00401ea5
add eax, 0x10
pop ecx
mov dword [edi], eax
jmp 0x40628c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x7e0]
push eax
call fcn.005502e0
pop ecx
test eax, eax
je 0x406259
lea eax, [ebp - 0x7e0]
push eax
mov ecx, edi
call fcn.00401c3d
mov ecx, ebx
call fcn.00402327
mov ecx, esi
call fcn.00402327
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402327
mov eax, edi
call fcn.0054b85f
ret 0x14
Function at 0x4062af
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x56b84e
call fcn.0054b87d
lea eax, [ebp + 0x10]
xor esi, esi
push eax
lea eax, [ebp + 0x14]
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.00406081
xor edi, edi
test eax, eax
je 0x4062fe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406320
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402327
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, esi
call fcn.0054b84b
ret 0x10
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
test eax, eax
jne 0x4062f8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406300

Function at 0x406344
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x56b888
call fcn.0054b87d
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00406081
xor edi, edi
test eax, eax
je 0x406394
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4063c1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402327
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402327
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402327
mov eax, esi
call fcn.0054b84b
ret 0x10
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push esi
push edi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
test eax, eax
jne 0x40638e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406396

Function at 0x40675b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5cb660]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x10c], edi
call fcn.0054d270
add esp, 0xc
lea eax, [ebp - 0x10c]
mov ecx, esi
push 1
push 1
push eax
call fcn.00404e25
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0x57bef9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x10c]
lea ecx, [ecx - 0x10]
call fcn.00402327
cmp dword [ebp + 0xc], 0
jne 0x4067da
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.00401c3d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0054b83d
leave
ret 8