joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5732dc
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5f4900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0x44
push 0
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00550230
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
call fcn.0041ceb0
push eax
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.00403a90
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4073a2
mov edx, dword [ebp - 0x10]
push edx
push str.Install_finished_with_error_Code:__Xh
lea eax, [ebp - 0x14]
push eax
call fcn.00404760
add esp, 0xc
jmp 0x4073bb
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.Create_Process_failed___Error_Code:__Xh___Process_exit_error_Code:__Xh
lea eax, [ebp - 0x14]
push eax
call fcn.00404760
add esp, 0x10
push 1
lea ecx, [ebp - 0x14]
call fcn.00403e60
push eax
call fcn.00419830
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403b70
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x408c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573608
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5f4900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x408d69
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
je 0x408d69
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408d18
push 1
push str.Using_custom_UI_at:
call fcn.00419830
add esp, 8
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00419830
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x290
call fcn.00403d90
jmp 0x408d67
push str.cannot_find_html_resouce_for_this_dialog.
lea ecx, [ebp - 0x10]
call fcn.00403a10
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403f40
push str._doesnt_exist
lea ecx, [ebp - 0x10]
call fcn.00403f40
push 1
lea ecx, [ebp - 0x10]
call fcn.00403e60
push eax
call fcn.00419830
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403b70
jmp 0x408d78
push 1
push str.cannot_find_html_resouce_for_this_dialog
call fcn.00419830
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573707
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov eax, dword [ebp - 0x2a8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2a8]
mov eax, dword [edx + 0x1e8]
call eax
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
call fcn.0041d4f0
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2ac]
call fcn.004074d0
movzx ecx, al
test ecx, ecx
jne 0x4093b0
lea ecx, [ebp - 0x2ac]
call fcn.00403e60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4093b0
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403e60
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00408770
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00423710
cmp eax, 1
jne 0x409351
mov ecx, dword [ebp - 0x2a8]
call fcn.0043727c
jmp 0x40939f
push 0x58a910
lea ecx, [ebp - 0x2c0]
call fcn.00409760
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x2c0]
push ecx
push str.OnTimer
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x98
mov edx, dword [ebp - 0x2a8]
mov eax, dword [edx + 0x98]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c0]
call fcn.004097b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.00408890
jmp 0x4093bb
mov ecx, dword [ebp - 0x2a8]
call fcn.0043727c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.00403b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret
Function at 0x409850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5737a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5f4900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b9e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040c340
test eax, eax
jne 0x4098d6
push 0x104
lea ecx, [ebp - 0x24]
call fcn.0040bea0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x24]
call fcn.0040be00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4098d6
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x4098d6
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040b960
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x224], 0xc
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x224]
push eax
call fcn.00409bc0
movzx ecx, al
test ecx, ecx
je 0x40995a
lea edx, [ebp - 0x224]
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00550230
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x210], edx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
movzx edx, word [ecx]
test edx, edx
je 0x409a29
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4099bb
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x4099e9
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp + 8]
jbe 0x4099e9
mov edx, dword [ebp - 0x210]
movzx eax, word [edx - 2]
cmp eax, 0x3a
je 0x4099e9
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
add ecx, 2
mov dword [ebp - 0x210], ecx
xor edx, edx
mov eax, dword [ebp - 0x218]
mov word [eax], dx
jmp 0x40998e
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x214]
push eax
call fcn.00409c10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409850
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57389f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x224
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x21d], 0
lea ecx, [ebp - 0x230]
call fcn.0040b930
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x234], 0x104
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00550230
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x40aa52
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040bbe0
jmp 0x40aa5a
mov dword [ebp - 4], 0
jmp 0x40aa6a
lea ecx, [ebp - 0x230]
call fcn.0040c340
test eax, eax
je 0x40aa89
push str.C:_temp
lea ecx, [ebp - 0x230]
call fcn.0040bbe0
lea ecx, [ebp - 0x230]
call fcn.0040c340
test eax, eax
jne 0x40aaf5
lea ecx, [ebp - 0x230]
call fcn.0040be20
mov dword [ebp - 0x224], eax
cmp dword [ebp + 8], 0
je 0x40aae3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x224]
jle 0x40aae1
lea ecx, [ebp - 0x230]
call fcn.0040be00
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005508be
add esp, 0xc
mov byte [ebp - 0x21d], 1
jmp 0x40aaea
mov byte [ebp - 0x21d], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x224]
mov dword [ecx], edx
mov al, byte [ebp - 0x21d]
mov byte [ebp - 0x21e], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040b960
mov al, byte [ebp - 0x21e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 8
Function at 0x40b300
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40b379
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40b36f
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
je 0x40b388
mov dword [ebp - 0x18], 1
jmp 0x40b38f
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret

Function at 0x40d570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
push str.shfolder.dll
lea ecx, [ebp - 0x238]
call fcn.0040b9e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040be00
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40d646
push 0x58bce8
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40d639
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x228]
test eax, eax
jl 0x40d639
mov dword [ebp - 0x220], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x40d6a2
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00550230
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040b960
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 4
Function at 0x40dee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
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_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40df5d
mov eax, dword [ebp + 0x14]
push eax
call fcn.0055091a
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40df53
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40df70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
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_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dfd6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dfcc
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40dfe0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573c67
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5f4900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.0040b930
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040bea0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40e069
cmp dword [ebp - 0x14], 1
je 0x40e078
cmp dword [ebp - 0x14], 2
je 0x40e078
push 0x58bebc
lea ecx, [ebp - 0x30]
call fcn.0040bbe0
jmp 0x40e0eb
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.0040bf40
lea ecx, [ebp - 0x30]
call fcn.0040c120
cmp dword [ebp - 0x14], 2
jne 0x40e0eb
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.0040b930
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040bea0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040be00
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040bf40
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040bc30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.0040b960
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b980
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040b960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40e2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
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_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e31b
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_RegSetValueExW]
test eax, eax
jne 0x40e311
mov dword [ebp - 8], 1
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 0x4125e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412635
cmp dword [ebp - 8], 3
jne 0x412635
cmp dword [ebp + 0x10], 0
je 0x412633
mov dword [ebp - 0xc], 1
jmp 0x412647
cmp dword [ebp - 4], 0xea
je 0x412647
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x412650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5742bc
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.005536b0
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x202c], 0
lea ecx, [ebp - 0x203c]
call fcn.0040b930
mov dword [ebp - 4], 1
mov dword [ebp - 0x201c], 0
lea eax, [ebp - 0x201c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41285b
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x2028], 0
lea eax, [ebp - 0x2030]
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x2028]
push edx
push 0
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2018]
push ecx
mov edx, dword [ebp - 0x2020]
push edx
mov eax, dword [ebp - 0x201c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41284e
cmp dword [ebp - 0x2028], 1
jne 0x412826
lea ecx, [ebp - 0x203c]
call fcn.0040be20
test eax, eax
jle 0x412783
push 0x58b7fc
lea ecx, [ebp - 0x2054]
call fcn.0040b9e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2054]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.0040bd30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.0040b960
lea edx, [ebp - 0x2018]
push edx
lea ecx, [ebp - 0x206c]
call fcn.0040b9e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x203c]
call fcn.0040bd30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x206c]
call fcn.0040b960
push 0x58b814
lea ecx, [ebp - 0x2060]
call fcn.0040b9e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.0040bd30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2060]
call fcn.0040b960
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x2048]
call fcn.0040b9e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2048]
push eax
lea ecx, [ebp - 0x203c]
call fcn.0040bd30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2048]
call fcn.0040b960
mov ecx, dword [ebp - 0x2020]
add ecx, 1
mov dword [ebp - 0x2020], ecx
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
jmp 0x4126f1
mov edx, dword [ebp - 0x201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x203c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b980
mov ecx, dword [ebp - 0x202c]
or ecx, 1
mov dword [ebp - 0x202c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.0040b960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417080
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 4], 0
jmp 0x417099
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x4170e1
mov dword [ebp - 8], 0
jmp 0x4170b1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x4170df
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x48]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [edx + esi*4 + 0x58d748]
mov dword [eax + ecx*4], edx
jmp 0x4170a8
jmp 0x417090
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4170fa
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x417165
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x417119
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jge 0x41714d
mov edx, dword [ebp - 0x18]
shl edx, 8
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x41714b
mov dword [ebp - 8], 0
jmp 0x417110
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x58d700]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x4170f1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x417185
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x4171ba
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00417240
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0x41717c
mov dword [ebp - 4], 0
jmp 0x4171cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x417232
mov dword [ebp - 8], 0
jmp 0x4171e4
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x417230
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417240
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x48]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
jmp 0x4171db
jmp 0x4171c3
pop esi
mov esp, ebp
pop ebp
ret