joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012c0
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5000
call fcn.00420ef4
push 0x103
mov esi, eax
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00424e10
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00421070
add esp, 8
test eax, eax
je 0x401331
mov byte [eax], 0
push 0x4819e0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004211a7
push 0x4819e4
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004211a7
push 0x4819ec
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004211a7
push str.lluid.ini
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004211a7
add esp, 0x30
lea eax, [ebp - 0x108]
push eax
push 0x5000
push esi
push 0x481998
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x4013b0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013b0
sub ecx, edx
mov dword [ebp - 0x110], ecx
lea eax, [ecx + 1]
push eax
call fcn.00420ef4
mov edi, eax
lea eax, [ebp - 0x110]
push eax
mov edx, esi
mov ecx, edi
mov dword [ebp - 0x10c], edi
call fcn.004152d0
push esi
call fcn.00420618
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4013f0
sub esi, ecx
push esi
call fcn.00420ef4
add esp, 4
mov ebx, eax
test esi, esi
je 0x401423
mov ecx, ebx
sub edi, ebx
mov edx, esi
mov edi, edi
mov al, byte [edi + ecx]
xor al, 0xaa
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x401410
mov edi, dword [ebp - 0x10c]
push esi
push ebx
push edi
call fcn.00428b40
push ebx
call fcn.00421037
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x481a44
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x481a4c
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x402061
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x481a98
push eax
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov esp, ebp
pop ebp
ret 8
Function at 0x402070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xf
push str.Softwareduoduo
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004014f0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4020f4
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push esi
push ecx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
cmp dword [ebp - 8], 0x10
jb 0x40210a
push dword [ebp - 0x1c]
call fcn.00420618
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret 8
Function at 0x4049c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x64c], ebx
call fcn.004082f0
push 0x90
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push 0x481b54
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x340
call fcn.00420692
mov esi, eax
add esp, 4
test esi, esi
je 0x404a56
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
jmp 0x404a58
xor esi, esi
sub esp, 8
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00414190
mov dword [0x49483c], eax
test eax, eax
je 0x404a97
push esi
call fcn.00420618
add esp, 4
xor ecx, ecx
call fcn.00415100
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 8
push 8
call fcn.00420692
mov edi, eax
add esp, 4
lea eax, [ebp - 0x648]
push eax
or edx, 0xffffffff
mov ecx, edi
mov dword [edi], 1
mov dword [edi + 4], esi
call fcn.00414e70
mov eax, dword [ebp - 0x648]
add esp, 4
xor esi, esi
mov dword [ebp - 0x650], eax
test eax, eax
jle 0x404b99
lea eax, [ebp - 0x648]
push eax
mov edx, esi
mov ecx, edi
call fcn.00414e70
add esp, 4
cmp word [ebp - 0x644], 0
lea eax, [ebp - 0x644]
je 0x404b18
mov ebx, 0x5c
mov edi, edi
cmp word [eax], 0x2f
jne 0x404b09
mov word [eax], bx
add eax, 2
cmp word [eax], 0
jne 0x404b00
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0x64c]
lea eax, [ebp - 0x418]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
lea eax, [ebp - 0x418]
push eax
call ebx
cmp dword [edi], 1
je 0x404b61
mov dword [0x49483c], 0x80000
jmp 0x404b7e
mov ecx, dword [edi + 4]
sub esp, 8
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x648]
call fcn.00414a80
mov dword [0x49483c], eax
push 0x80
lea eax, [ebp - 0x418]
push eax
call ebx
inc esi
cmp esi, dword [ebp - 0x650]
jl 0x404ad6
cmp dword [edi], 1
je 0x404baa
mov dword [0x49483c], 0x80000
jmp 0x404bcb
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00414da0
push esi
mov dword [0x49483c], eax
call fcn.00420618
add esp, 4
push edi
call fcn.00420618
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret 8
Function at 0x4082f0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00421cc0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408324
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x408357
push 0x481a40
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00421c54
add esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp word [ebp - 0x20c], di
je 0x4083bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
lea esi, [ebp - 0x20c]
cmp word [esi], 0x5c
jne 0x4083a9
cmp eax, 0x208
jae 0x4083e5
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004218f5
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call ebx
test al, 0x10
je 0x4083d0
mov ecx, 0x5c
mov word [esi], cx
inc edi
lea esi, [ebp - 0x20c]
lea eax, [edi + edi]
add esi, eax
cmp word [esi], 0
jne 0x408373
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret 4
call fcn.00421b7a
int3
Function at 0x4093e0
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [0x49200c], 0
jne 0x409432
push str.sixinll_duoduomain_mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x49200c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409435
mov eax, dword [0x49200c]
test eax, eax
je 0x409421
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x49200c], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x49200c], 0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x409d40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004093e0
test eax, eax
jne 0x409d6c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00424e10
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.0040eca0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.bin1025
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x481a40
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Core.dll
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x492010], eax
test eax, eax
je 0x409eff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Start
push eax
call esi
push str.IsGJ
push dword [0x492010]
mov dword [0x49202c], eax
call esi
push str.Stop
push dword [0x492010]
mov dword [0x492014], eax
call esi
push str.ChangUser
push dword [0x492010]
mov dword [0x492000], eax
call esi
push str.GetUrl
push dword [0x492010]
mov dword [0x492028], eax
call esi
push str.GetUrlLoop
push dword [0x492010]
mov dword [0x49201c], eax
call esi
push str.SetWorkStatusReport
push dword [0x492010]
mov dword [0x492020], eax
call esi
push str.Free
push dword [0x492010]
mov dword [0x492030], eax
call esi
push str.SetCallBack
push dword [0x492010]
mov dword [0x492018], eax
call esi
push str.SetWorkMode
push dword [0x492010]
mov dword [0x492024], eax
call esi
cmp dword [0x49202c], 0
mov ecx, eax
mov dword [0x492004], ecx
je 0x409eff
cmp dword [0x492000], 0
je 0x409eff
cmp dword [0x492028], 0
je 0x409eff
cmp dword [0x49201c], 0
je 0x409eff
cmp dword [0x492018], 0
je 0x409eff
mov eax, dword [0x492024]
test eax, eax
je 0x409eff
test ecx, ecx
je 0x409eff
cmp dword [0x492030], 0
je 0x409eff
cmp dword [0x492014], 0
je 0x409eff
push 0x409c50
call eax
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00420548
mov esp, ebp
pop ebp
ret

Function at 0x409f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
push 0x481a44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x481a4c
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x409f70
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x481a98
push eax
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf
mov esi, ecx
push str.Softwareduoduo
lea ecx, [ebp - 0x1c]
mov edi, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004014f0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40a012
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push esi
push ecx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
cmp dword [ebp - 8], 0x10
jb 0x40a028
push dword [ebp - 0x1c]
call fcn.00420618
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret

Function at 0x40a040
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a085
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40a095
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40a07c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00420548
mov esp, ebp
pop ebp
ret

Function at 0x40a0e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040a040
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x238]
push eax
push esi
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.004227dd
add esp, 8
test eax, eax
jne 0x40a156
push dword [ebp - 0x230]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40a156
push 0
push eax
call edi
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a127
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret
Function at 0x40bdc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
push edi
call fcn.00420ef4
mov esi, eax
add esp, 4
test esi, esi
je 0x40be09
push edi
push 0
push esi
call fcn.00424e10
add esp, 0xc
jmp 0x40be0b
xor esi, esi
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [edx], ax
jne 0x40be4c
xor ecx, ecx
jmp 0x40be60
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be51
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00404030
push esi
call fcn.00421037
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ccd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4731d2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48e300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4822e8
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040e030
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040e0f0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x494898]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040d8b0
test eax, eax
jne 0x40ce26
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40ce14
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40ce26
push 0
call fcn.0040c650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4732c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48e300]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x48e300]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40dc14
cmp byte [ebx + 0x45], 0
je 0x40dc14
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40db20
xor al, al
jmp 0x40dc16
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40db60
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40dba1
dec eax
je 0x40dba5
sub eax, 2
je 0x40dbfb
xor bl, bl
jmp 0x40dbfd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40dbdc
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00422138
add esp, 0x10
cmp esi, eax
jne 0x40db9d
cmp byte [ebx + 0x45], 0
je 0x40dbfb
test esi, esi
jne 0x40db60
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040d7c0
jmp 0x40db60
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40dc10
push dword [esp + 0x18]
call fcn.00420618
add esp, 4
mov al, bl
jmp 0x40dc16
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00420548
mov esp, ebp
pop ebp
ret
Function at 0x40eac0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x418]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x418], 0
jne 0x40eb15
lea eax, [ebp - 0x418]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00424e10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00424e10
push edi
lea eax, [ebp - 0x414]
push 0x481b54
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4823b8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00420548
mov esp, ebp
pop ebp
ret

Function at 0x40ebc0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push str.Softwareduoduo
push SysReAllocString
mov esi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 4], 0
jne 0x40ebf1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ebf6
push ebx
sub ecx, edx
push edi
lea edi, [ecx + 1]
push edi
mov dword [ebp - 8], edi
call fcn.00420ef4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ec24
push edi
push 0
push ebx
call fcn.00424e10
add esp, 0xc
jmp 0x40ec26
xor ebx, ebx
push dword [ebp - 8]
mov edi, ebx
push 0
push ebx
call fcn.00424e10
mov al, byte [esi]
add esp, 0xc
test al, al
je 0x40ec4c
lea esp, [esp]
xor al, 0xaa
inc esi
mov byte [edi], al
mov al, byte [esi]
inc edi
test al, al
jne 0x40ec40
mov al, byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor al, 0xaa
push 4
mov byte [edi], al
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.nRule
push dword [ebp - 4]
call esi
push dword [ebp - 8]
push ebx
push 3
push 0
push str.Rule
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00421037
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret