joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af9e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x40b06c
cmp dword [esi], 0xffffffff
je 0x40afc5
call fcn.0040af7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov edi, dword [ebp + 8]
mov ecx, dword [0x41a078]
mov dword [ebp - 4], edi
call fcn.0041159a
test al, al
je 0x40afe4
mov ecx, edi
call fcn.0040acb1
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
push dword [ebp - 4]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40affe
mov ebx, 0x80
jmp 0x40b031
test bl, 1
je 0x40b031
xor eax, eax
push eax
push 0x42004
push eax
push str.Read_Only_file__nRemove_attribute_to_allow_Writting_
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
cmp eax, 6
jne 0x40b031
and ebx, 0xfffffffe
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 4]
call edi
mov ebx, eax
mov al, byte [ebp + 0xc]
xor edi, edi
or ebx, 0x8000000
push edi
neg al
sbb eax, eax
push ebx
mov ebx, dword [ebp - 4]
add eax, 3
push eax
push edi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp ebx, dword [ebp + 8]
mov dword [esi], eax
je 0x40b066
push ebx
call fcn.0040b346
pop ecx
cmp dword [esi], 0xffffffff
pop ebx
jne 0x40b070
xor al, al
jmp 0x40b075
mov dword [esi + 8], edi
mov al, 1
pop edi
pop esi
leave
ret 8

Function at 0x40b406
Capabilities:
Get common file path

Disassembly:
push edi
push 1
push 0x42b7bc
mov edi, ecx
push 0x105
call fcn.0040c21c
test eax, eax
jne 0x40b422
mov eax, edi
jmp 0x40b47f
mov edx, dword [esp + 8]
push esi
mov esi, 0x178a
sub edx, esi
je 0x40b44a
dec edx
je 0x40b43c
dec edx
je 0x40b44a
and word [eax], 0
jmp 0x40b451
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x40b451
mov ecx, eax
call fcn.0040b751
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b483
cmp dword [esp + 0xc], 0x178c
je 0x40b47c
cmp dword [esp + 0xc], esi
jne 0x40b471
mov ecx, edi
call fcn.0040b50d
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040b4ae
mov eax, edi
pop esi
pop edi
ret 8

Function at 0x40b842
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, ecx
push esi
push 0
push str.Enable
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne bl
test bl, bl
je 0x40b872
push dword [esp + 0xc]
lea ecx, [esi + 0x208]
call fcn.004010ce
jmp 0x40b879
mov ecx, esi
call fcn.0040b7fe
mov al, bl
pop esi
pop ebx
ret 4

Function at 0x40b880
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x208]
push ecx
push dword [esp + 0xc]
add eax, 0xc
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret 8

Function at 0x40b89c
Capabilities:
Read .ini file

Disassembly:
xor eax, eax
push ecx
cmp byte [esp + 0xc], al
setne al
push eax
mov eax, dword [ecx + 0x208]
push dword [esp + 0xc]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40b8c4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
lea esi, [ebp - 0x100]
mov ax, word [ecx]
test ax, ax
mov word [ebp - 0x100], ax
je 0x40b900
lea eax, [ebp - 0x100]
sub ecx, eax
inc esi
inc esi
mov ax, word [ecx + esi]
test ax, ax
mov word [esi], ax
jne 0x40b8f2
mov eax, dword [ebp + 0x10]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and word [esi + 2], 0
mov eax, dword [eax]
mov word [esi], 0x4c
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebx + 0x208]
add eax, 0xc
push eax
call edi
mov ecx, dword [ebp + 0xc]
push ebx
mov word [esi], 0x54
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebx + 0x208]
add eax, 0xc
push eax
call edi
mov ecx, dword [ebp + 0xc]
push ebx
mov word [esi], 0x52
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebx + 0x208]
add eax, 0xc
push eax
call edi
mov ecx, dword [ebp + 0xc]
push ebx
mov word [esi], 0x42
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebx + 0x208]
add eax, 0xc
push eax
call edi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx + 0xc], eax
leave
ret 0xc

Function at 0x40b9ca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41a098]
push ebx
push esi
mov dword [ebp - 4], eax
inc dword [eax]
push edi
mov esi, 0x42b7bc
mov eax, 0x80
push 1
push esi
mov ebx, ecx
mov edi, eax
push eax
lea ecx, [ebp - 4]
call fcn.0040c21c
test eax, eax
je 0x40ba1a
push ebx
push edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x40ba32
shl edi, 1
push 1
push esi
push edi
jmp 0x40b9ed
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push esi
call fcn.0040c0c2
lea ecx, [ebp - 4]
call fcn.0040c13a
mov eax, dword [ebp + 8]
jmp 0x40ba50
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040b483
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 4]
mov dword [esi], eax
inc dword [eax]
call fcn.0040c13a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ec36
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41a098]
push esi
push edi
xor esi, esi
push 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
inc dword [eax]
push 0x178a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], esi
call fcn.0040b406
push str.chardet.dll
lea edx, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00401795
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
inc dword [eax]
call fcn.0040c13a
lea ecx, [ebp - 4]
call fcn.0040c13a
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
call fcn.0040ada5
cmp eax, 0xffffffff
je 0x40edb9
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40edb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.chardet_create
push edi
call esi
push str.chardet_destroy
push edi
mov ebx, eax
call esi
push str.chardet_handle_data
push edi
mov dword [ebp - 0x10], eax
call esi
push str.chardet_data_end
push edi
mov dword [ebp - 4], eax
call esi
push str.chardet_get_charset
push edi
mov dword [ebp - 0x18], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x40edae
cmp dword [ebp - 0x10], eax
je 0x40edae
cmp dword [ebp - 4], eax
je 0x40edae
cmp dword [ebp - 0x18], eax
je 0x40edae
cmp esi, eax
je 0x40edae
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
pop ecx
jne 0x40edae
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x40edae
push dword [ebp - 8]
call dword [ebp - 0x18]
lea eax, [ebp - 0x98]
push 0x80
push eax
push dword [ebp - 8]
call esi
add esp, 0x10
xor esi, esi
mov ebx, 0x42d968
mov edx, dword [ebx]
lea ecx, [ebp - 0x98]
call fcn.0040edc9
test eax, eax
je 0x40ed81
add ebx, 8
inc esi
cmp ebx, 0x42da58
jb 0x40ed62
jmp 0x40ed8b
mov eax, dword [esi*8 + 0x42d96c]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [ebp - 0x10]
mov eax, 0xd698
pop ecx
cmp dword [ebp - 0xc], eax
jne 0x40edae
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x40edae
mov dword [ebp - 0xc], 0x3a8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0xc]
pop ebx
lea ecx, [ebp - 0x14]
call fcn.0040c13a
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x41122d
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0x40
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
push 0x1000
push 0x16
push eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
ret 0xc
Function at 0x4116a4
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
and byte [esi], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4116d4
cmp byte [esp + 0xc], 0
jne 0x4116d1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4116d1
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4116d4
mov byte [esi], 1
mov eax, esi
pop esi
ret 8

Function at 0x4116e6
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push edi
push 0xd
call esi
test eax, eax
je 0x411727
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x411841
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], 1
mov eax, ecx
jmp 0x41184b
push 0xf
call esi
test eax, eax
je 0x411841
push 0xf
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x411841
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0xc], ecx
je 0x411841
xor esi, esi
or edx, 0xffffffff
push esi
push esi
call fcn.0040befa
mov edi, eax
mov ecx, 0x41a080
shl eax, 2
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], eax
call fcn.00404fe6
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x4117cb
cmp edi, esi
mov dword [ebp - 4], esi
jbe 0x4117b4
mov ebx, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push esi
push esi
call fcn.0040befa
mov ecx, 0x104
cmp eax, ecx
jbe 0x4117a4
mov eax, ecx
add dword [ebp - 8], eax
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], edi
jb 0x41178c
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
lea eax, [eax + eax + 2]
push eax
call fcn.0040b2de
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x4117d5
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x41184b
and word [ebx], 0
and dword [ebp - 4], 0
test edi, edi
mov esi, ebx
jbe 0x411824
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, 0x104
mov eax, dword [eax]
inc eax
cmp eax, ecx
jb 0x4117fa
mov eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push eax
push esi
call fcn.0040befa
lea esi, [esi + eax*2]
add dword [ebp - 8], 4
mov word [esi], 0xd
inc esi
inc esi
mov word [esi], 0xa
inc esi
inc esi
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x4117e9
push dword [ebp - 0x14]
and word [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x18]
sub dword [0x41a084], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x411847
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411d4e
Capabilities:
Change the wallpaper

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [esp + 0x14]
push edi
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x10]
lea esi, [ebx + 0x70]
mov dword [ebx], eax
mov dword [ebx + 8], esi
and byte [ebx + 0x10], 0
push eax
mov dword [ebx + 0xc], ecx
push ecx
lea ecx, [ebx + 0x14]
call fcn.00413e50
and byte [ebx + 0x59], 0
and byte [ebx + 0x5a], 0
xor edi, edi
mov byte [ebx + 0x58], 1
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x6c], edi
mov dword [esi], 0x42c0e4
lea esi, [ebx + 0x60]
push edi
push esi
push edi
push 0xa
mov dword [esi], 0xf
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi]
add eax, 3
imul eax, eax, 0xb
sar eax, 3
cmp eax, 8
jl 0x411dc2
push 8
pop eax
mov dword [esi], eax
lea esi, [ebx + 0x28]
push 6
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
mov dword [esi], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x38], edi
lea edi, [ebx + 0x40]
pop ecx
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x412f38
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
lea ecx, [ebp - 4]
push dword [esi + 0xc]
call fcn.004116a4
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
jne 0x412f65
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
je 0x413046
cmp byte [ebp - 4], 0
je 0x413046
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x2c]
cmp eax, ecx
ja 0x412f9b
jne 0x412fb3
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x40]
jbe 0x412fb3
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041805b
mov edi, eax
lea eax, [edi + edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x412fee
push ebx
push 0x42000
push ebx
push 0x42e68c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x413046
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 4]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004180be
test edi, edi
jbe 0x413020
mov eax, ebx
mov ecx, edi
cmp word [eax], 0
jne 0x41301b
mov word [eax], 0x20
inc eax
inc eax
dec ecx
jne 0x413010
push dword [ebp - 8]
and word [ebx + edi*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x413046
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 4]
call fcn.004116da
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405770
Capabilities:
Listen for remote procedure calls

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov edx, 0x6c0074
mov ebp, esp
push ebx
push ecx
sub esp, 0x54
mov word [ebp - 0x38], ax
mov eax, 0x630063
movdqa xmm0, xmmword [str.ncacn_nppipe_sv]
mov dword [ebp - 0x14], edx
xor edx, edx
movaps xmmword [ebp - 0x48], xmm0
movdqa xmm0, xmmword [0x40dc50]
mov dword [ebp - 0x18], eax
movaps xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x10], dx
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x411004], eax
test eax, eax
je 0x405870
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x405810
test byte [section..data], 2
jne 0x405900
mov eax, ebx
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x40b188]
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405898
test byte [section..data], 2
je 0x405802
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40b000
mov dword [esp], 1
call fcn.00401700
jmp 0x405802
test byte [section..data], 2
jne 0x405938
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 8]
pop ecx
mov eax, ebx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405970
test byte [section..data], 2
je 0x405802
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40b000
mov dword [esp], 1
call fcn.00401700
jmp 0x405802
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40b000
mov dword [esp], 1
call fcn.00401700
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x40d4e4
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40b000
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00401700
jmp 0x40587d
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x411000
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x405802
Function at 0x405b00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sub esp, 0x1c
test ecx, ecx
je 0x405b58
cmp word [ecx], 0
mov eax, ecx
je 0x405b80
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405b18
sub eax, ecx
add eax, 2
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [ebp - 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
sub esp, 8
cmp eax, 2
mov esi, dword [ebp - 4]
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x405b26

Function at 0x405b90
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sub esp, 0x1c
test ecx, ecx
je 0x405bec
cmp word [ecx], 0
mov eax, ecx
je 0x405c0d
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405ba8
add eax, 2
cmp word [eax], 0
jne 0x405ba8
sub eax, ecx
add eax, 2
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [ebp - 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
sub esp, 8
cmp eax, 2
mov esi, dword [ebp - 4]
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x405bbf
Function at 0x406d10
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 8
mov ebx, dword [ecx]
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock sub dword [ebx + 0xc], 1
jne 0x406d3f
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x406d58
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [esp], ebx
call fcn.00406a10
jmp 0x406d3f

Function at 0x406ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ebx, dword [edi]
sub esp, 8
cmp ebx, edi
jne 0x406f3e
jmp 0x406f63
mov ebx, dword [ebx]
cmp ebx, edi
je 0x406f63
cmp dword [ebx + 0x68], esi
jne 0x406f38
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
sub dword [esi + 0x10], 1
mov dword [esp], esi
call fcn.00406970
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x406f3e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408a10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
push ebx
lea esi, [ebp - 0x10]
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x408ad0
mov ebx, eax
cmp eax, 2
je 0x408b53
xor ecx, ecx
test byte [0x40b080], 2
jne 0x408a90
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call fcn.004086e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], 0x40e850
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call fcn.00408970
mov ecx, dword [ebp - 0x18]
jmp 0x408a74
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x408af0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x408ae4
cmp eax, 2
je 0x408af0
mov ebx, 0x70c
jmp 0x408a69
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x20], eax
call eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov ecx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x408a6b
mov eax, dword [ebp - 0x14]
xor edx, edx
and eax, 0xfffffffe
cmp dword [ebp - 0x10], 2
mov word [ecx + eax], dx
je 0x408b60
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov ebx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x18], ecx
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov esi, eax
mov dword [ebp - 0x14], eax
jne 0x408ba0
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
jmp 0x408a6b
lea eax, [eax + eax]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov dword [esp], ecx
call ebx
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
sub esp, 0xc
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x408b55