joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b60
sub eax, edx
xor esi, esi
xor edx, edx
test eax, eax
jle 0x402b89
movsx ecx, byte [esi + edi]
inc esi
add ecx, edx
imul edx, ecx, 0x401
mov ecx, edx
shr ecx, 6
xor edx, ecx
cmp esi, eax
jl 0x402b71
lea ecx, [edx + edx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
pop edi
imul eax, eax, 0x8001
pop esi
pop ebp
ret

Function at 0x403c80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427513
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x524104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x42b870
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.004028a0
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x405930
push ebx
push ebx
push ebx
push 2
call fcn.00408100
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x405947
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x405938
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jg 0x4059a3
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00408100
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
inc eax
push eax
call fcn.00425dbf
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4059e6
push esi
call fcn.00425dc8
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.00408100
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [esi + ebx], 0
mov eax, esi
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x405a17
mov dword [ebp + 8], eax
lea ebx, [edx + 1]
inc eax
cmp cl, 0xd
jne 0x405a0d
mov byte [edx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp + 8]
inc eax
jmp 0x405a0f
mov byte [edx], cl
mov cl, byte [eax]
mov edx, ebx
test cl, cl
jne 0x4059f4
push dword [ebp + 0xc]
mov byte [edx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.00425dc8
add esp, 4
cmp byte [edi + 0x40], 0
sete al
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x408e70
Capabilities:
Encrypt data using blowfish

Disassembly:
movups xmm0, xmmword [0x42c910]
push esi
push edi
movups xmmword [ecx], xmm0
lea edi, [ecx + 0x48]
mov esi, 0x42c958
movups xmm0, xmmword [0x42c920]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x42c930]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x42c940]
movups xmmword [ecx + 0x30], xmm0
movq xmm0, qword [0x42c950]
movq qword [ecx + 0x40], xmm0
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x409100
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x38
push ebx
mov ebx, ecx
jle 0x409117
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
movups xmm0, xmmword [0x42c910]
push esi
push edi
movups xmmword [ebx], xmm0
lea edi, [ebx + 0x48]
mov ecx, 0x400
movups xmm0, xmmword [0x42c920]
mov esi, 0x42c958
mov dword [ebp - 4], 0
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [0x42c930]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [0x42c940]
movups xmmword [ebx + 0x30], xmm0
movq xmm0, qword [0x42c950]
movq qword [ebx + 0x40], xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, 2
nop
lea eax, [edi - 2]
mov ecx, dword [ebx + 0x1048]
cdq
idiv esi
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov byte [ebp + ecx + 0xc], al
lea eax, [edi - 1]
cdq
idiv esi
mov ecx, dword [ebx + 0x104c]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov byte [ebp + ecx + 0xc], al
mov eax, edi
cdq
idiv esi
mov ecx, dword [ebx + 0x1050]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov byte [ebp + ecx + 0xc], al
lea eax, [edi + 1]
cdq
add edi, 4
idiv esi
mov ecx, dword [ebx + 0x1054]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov byte [ebp + ecx + 0xc], al
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor dword [ebx + ecx*4], eax
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x12
jl 0x409170
mov dword [ebp + 8], 0
xor esi, esi
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409a60
mov eax, dword [ebp + 8]
mov dword [ebx + esi*4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x4091f0
lea esi, [ebx + 0x4c]
mov dword [ebp - 4], 4
nop
mov edi, 0x80
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409a60
mov eax, dword [ebp + 8]
mov dword [esi - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x409225
sub dword [ebp - 4], 1
jne 0x409220
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428438
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0
push 0x42b870
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004028a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x40f6e4
push 1
push 0x42eee8
lea ecx, [ebp - 0x28]
call fcn.00402740
test edi, edi
jne 0x40f5f3
xor edx, edx
jmp 0x40f635
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f600
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40f61e
xor edx, edx
jmp 0x40f635
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040cf40
mov edx, eax
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f640
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402740
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
jb 0x40f667
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x40f667
xor eax, eax
jmp 0x40f69c
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f670
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40f688
xor eax, eax
jmp 0x40f69c
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f6e4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x208
push eax
lea eax, [ebx + 0x2b470]
push eax
push 0
push 0
push str.LogFileLocation
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40f71a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f710
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f710
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret 4
Function at 0x4151e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a38
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x470], esi
lea ecx, [ebp - 0x478]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
mov dword [ebp - 4], 0
add esi, 0x15ab8
mov ecx, esi
call fcn.00417b00
test eax, eax
je 0x4152e9
mov ecx, esi
call fcn.00417c80
push eax
lea ecx, [ebp - 0x46c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea eax, [ebp - 0x474]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x4152d9
dec eax
cmp eax, 0x103
ja 0x4152d9
xor eax, eax
mov word [ecx - 2], ax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4152d9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41532d
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
je 0x415325
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc edi
add esi, 0x1074
cmp edi, 0x14
jb 0x415237
mov bl, 1
lea ecx, [ebp - 0x478]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x470]
push 0
push 0
push dword [ebx + 0x2c354]
call sub.mfc140u.dll_AfxMessageBox
mov ecx, esi
call fcn.00417c80
push eax
lea ecx, [ebx + 0x2be30]
call sub.mfc140u.dll_CWnd::SetWindowTextW
push 0x406
mov ecx, ebx
call sub.mfc140u.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc140u.dll_CWnd::SetFocus
lea ecx, [ebp - 0x46c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor bl, bl
jmp 0x4152fb
Function at 0x415380
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a38
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x470], esi
lea ecx, [ebp - 0x478]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
mov dword [ebp - 4], 0
add esi, 0x100
mov ecx, esi
call fcn.00417b00
test eax, eax
je 0x415489
mov ecx, esi
call fcn.00417c80
push eax
lea ecx, [ebp - 0x46c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea eax, [ebp - 0x474]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x415479
dec eax
cmp eax, 0x103
ja 0x415479
xor eax, eax
mov word [ecx - 2], ax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x415479
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4154cd
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4154c5
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc edi
add esi, 0x1074
cmp edi, 0x14
jb 0x4153d7
mov bl, 1
lea ecx, [ebp - 0x478]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x470]
push 0
push 0
push dword [ebx + 0x2c354]
call sub.mfc140u.dll_AfxMessageBox
mov ecx, esi
call fcn.00417c80
push eax
lea ecx, [ebx + 0x2b928]
call sub.mfc140u.dll_CWnd::SetWindowTextW
push 0x3f0
mov ecx, ebx
call sub.mfc140u.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc140u.dll_CWnd::SetFocus
lea ecx, [ebp - 0x46c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor bl, bl
jmp 0x41549b
Function at 0x416a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x524104]
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 edi, ecx
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x290], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x298], 0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x294], 0x104
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARED_PDU_API
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416af8
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x298]
push eax
push 0
push str.Root_File
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x290]
test eax, eax
je 0x416b1c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x2b0]
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.00425b22
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416b30
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x416b4e
xor eax, eax
jmp 0x416b6c
add esi, esi
mov eax, esi
call fcn.00425b70
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x21c]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x28c]
call fcn.00403b60
mov ecx, dword [edi + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00404090
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
call fcn.00403fa0
mov ecx, dword [edi + 8]
push 0
call fcn.00405a40
test al, al
je 0x416af8
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x29c]
mov eax, dword [edi + 8]
cmp edx, ecx
je 0x416bbb
mov dword [ecx], eax
mov ecx, dword [edi + 0xc]
push str.MVCI_PDU_API_ROOT
lea eax, [ebp - 0x2a0]
push eax
call fcn.00405750
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x416af8
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
je 0x416af8
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x416afa
jmp 0x416af8
Function at 0x417da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417dd2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x417e48
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e12
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x417e48
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00425b22
mov esp, ebp
pop ebp
ret
Function at 0x419e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x208
mov dword [ebp - 0x214], eax
mov ebx, ecx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov dword [ebp - 0x210], 0
add esp, 0xc
cmp dword [ebx + 0x78], esi
jbe 0x419f36
push edi
lea edi, [esi + 0x28]
nop
push esi
push str.Connection
lea eax, [ebp - 0x20c]
push str._s_02d
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0x210]
push 0
push eax
push 0
push 0x20016
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419f28
push 4
lea eax, [ebx - 0x28]
add eax, edi
push eax
push 4
push 0
push str.Number
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + ebx]
push eax
push 4
push 0
push str.Enabled
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebx + 0x28]
add eax, edi
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add edi, 4
cmp esi, dword [ebx + 0x78]
jb 0x419e80
pop edi
push 4
lea eax, [ebx + 0x7c]
push eax
push 4
push 0
push str.Version
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425b22
mov esp, ebp
pop ebp
ret 4

Function at 0x41a000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push 0
mov ebx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a06a
push edi
mov edi, dword [ebp - 4]
push 4
push ebx
push 4
push eax
push str.SerialNumber
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebx + 4]
push eax
push 4
push 0
push str.Version
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x208
mov dword [ebp - 0x214], eax
mov ebx, ecx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov dword [ebp - 0x210], 0
add esp, 0xc
cmp dword [ebx + 0x50], esi
jbe 0x41a579
push edi
lea edi, [esi + 0x28]
nop
push esi
push str.InterfaceType
lea eax, [ebp - 0x20c]
push str._s_02d
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0x210]
push 0
push eax
push 0
push 0x20016
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a56b
push 4
lea eax, [ebx - 0x28]
add eax, edi
push eax
push 4
push 0
push str.Number
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + ebx]
push eax
push 4
push 0
push str.Enabled
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add edi, 4
cmp esi, dword [ebx + 0x50]
jb 0x41a4e0
pop edi
push 4
lea eax, [ebx + 0x54]
push eax
push 4
push 0
push str.Version
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425b22
mov esp, ebp
pop ebp
ret 4

Function at 0x41a600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x208
mov dword [ebp - 0x210], eax
mov ebx, ecx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x28], esi
jbe 0x41a67e
push edi
mov edi, ebx
push esi
push str.MessageSize
lea eax, [ebp - 0x20c]
push str._s_02d
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0x20c]
push 4
push edi
push 4
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
add edi, 4
cmp esi, dword [ebx + 0x28]
jb 0x41a640
pop edi
push 4
lea eax, [ebx + 0x2c]
push eax
push 4
push 0
push str.Version
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425b22
mov esp, ebp
pop ebp
ret 4