joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x55b444]
push edi
push 0xf0
push 0x81
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4124ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4124ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4124ee
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4124d9
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x41244e
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00412610
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x4124c6
push eax
call fcn.004b129b
add esp, 4
jmp 0x4124c6
cmp dx, ax
jne 0x4124cb
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00412610
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x4124a0
push eax
call fcn.004b129b
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x4123c6
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b00a0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b00a0
mov esp, ebp
pop ebp
ret 4
Function at 0x41d650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d6c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41d68f
cmp eax, 2
jne 0x41d6ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41d6bb
test ecx, ecx
je 0x41d6b6
test cl, 1
jne 0x41d6ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41d6bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41d6d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x41d6e5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x41d6f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d6f0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41f130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9428
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push str.GlobalLog
lea ecx, [esp + 0x14]
call fcn.00402020
push dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov ecx, 0x55ee14
mov dword [esp + 0x30], 0
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f1af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429500
Capabilities:
Contain obfuscated stackstrings
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x55e860]
mov word [ebp - 8], ax
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
push edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
cmp edx, 0xb
jne 0x4295c1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00402020
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b00a0
mov esp, ebp
pop ebp
ret

Function at 0x42a9e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea942
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x1f2
mov dword [ebp - 0x208], 0
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x20c], esi
call fcn.004b4d70
add esp, 0xc
lea eax, [ebp - 0x204]
push 0xfa
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
call fcn.00402020
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov dword [ebp - 0x208], 1
cmp dword [ecx - 0xc], 0
mov ecx, esi
je 0x42aa8c
push 0x11
push str.AppDataLocalLow
jmp 0x42aa93
push 3
push 0x536574
call fcn.00411e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b00a0
mov esp, ebp
pop ebp
ret
Function at 0x42bfe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x55e860]
push edi
lea eax, [esi + 1]
imul eax, esi
mov edi, edx
cdq
mov ebx, 9
idiv ebx
cmp edx, 7
jne 0x42c018
dec esi
mov dword [0x55e860], esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ecx]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c11d
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x55e860]
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 0xbc], 0x17
idiv dword [ebp - 0xbc]
cmp edx, 0x14
jne 0x42c0c0
movsd xmm3, qword [0x53f9d8]
movsd xmm6, qword [0x53fa00]
movsd xmm5, qword [0x53f9d0]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x42c0aa
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x42c090
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0xbc]
push ecx
mov dword [ebp - 0xbc], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c116
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x55e860]
imul eax, eax
cdq
mov ecx, 6
idiv ecx
mov bl, 1
cmp edx, 2
jne 0x42c116
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004b00a0
mov esp, ebp
pop ebp
ret
Function at 0x43e780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecda8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0043f4d0
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0043f4d0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0043efc0
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.0043efc0
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
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
Function at 0x43ea40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ece40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov esi, ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x12
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x539914
mov byte [ecx], 0
call fcn.00401300
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 4], 0
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x539928
mov byte [ecx], 0
call fcn.00401300
push 0
lea edi, [esi + 0x40]
push edi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0043f650
mov ecx, dword [0x55e860]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 9
jne 0x43eaf8
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x12
push str.GetFileVersionInfo
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00401300
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0043eea0
mov bl, byte [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x43eb45
push dword [ebp - 0x34]
call fcn.004b009b
add esp, 4
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
test bl, bl
jne 0x43eb71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x445720
Capabilities:
Delete registry key
Delete registry value
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
push 0xf003f
push 0
push dword [ecx]
mov esi, edx
push dword [0x558ef4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x445772
mov eax, dword [0x55e860]
imul eax, eax
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 2
jne 0x44576b
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x44578d
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x4457de
mov ecx, dword [0x55e860]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 3
idiv ecx
cmp edx, 1
jne 0x4457ac
dec dword [0x55f7ec]
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4457de
push dword [edi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [0x55e860]
mov dword [ebp - 0x614], eax
mov eax, ebx
imul eax, ebx
mov dword [ebp - 0x620], edx
push esi
cdq
mov esi, 0x14
idiv esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x61c], ecx
mov dword [ebp - 0x618], edi
cmp edx, 0xf
jne 0x446361
xor ecx, ecx
mov dword [ebp - 0x608], ebx
mov word [ebp + ecx*2 - 0x14], 0
inc ecx
cmp ecx, 7
jl 0x446354
lea ecx, [ebx + 2]
lea eax, [ebx + 1]
imul eax, ecx
imul eax, ebx
cdq
idiv esi
cmp edx, 7
jne 0x446420
xor eax, eax
mov dword [ebp - 0x60c], eax
lea ecx, [ebp - 0x604]
jmp 0x446390
xor edx, edx
mov dword [ebp - 0x608], edx
mov dword [ebp - 0x610], ecx
mov edi, edi
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0x60c]
mov ebx, dword [ebp - 0x610]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0x608]
push esi
push 0x53b3b0
call fcn.004b0fdf
mov eax, dword [ebp - 0x60c]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [ebp - 0x608], edx
mov dword [ebp - 0x610], ebx
cmp edx, 0x14
jge 0x4463fd
mov ebx, dword [0x55e860]
jmp 0x4463a0
inc eax
mov dword [ebp - 0x60c], eax
cmp eax, 0x13
jge 0x44641a
mov ebx, dword [0x55e860]
mov ecx, dword [ebp - 0x610]
jmp 0x446390
mov edi, dword [ebp - 0x618]
mov ebx, dword [ebp - 0x614]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x608]
push eax
push 0
push 0x2001f
push pe_nt_image_headers32
push 0
push 0
push dword [edi]
mov dword [ebp - 0x608], 0
push ebx
call esi
test eax, eax
je 0x44648b
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x608]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [edi]
mov dword [ebp - 0x608], 0
push ebx
call esi
test eax, eax
jne 0x446502
mov edx, dword [ebp - 0x620]
mov esi, dword [ebp - 0x608]
mov edx, dword [edx]
test edx, edx
jne 0x4464a2
lea ebx, [edx + 0xd]
jmp 0x4464d4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4464a7
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x61c]
push edx
push 1
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4464e3
push esi
call edi
xor esi, esi
test ebx, ebx
sete bl
test esi, esi
je 0x4464ef
push esi
call edi
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b00a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004b00a0
mov esp, ebp
pop ebp
ret
Function at 0x446520
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 8
mov dword [ebp - 4], ecx
push 0x2001f
push pe_nt_image_headers32
push ecx
push dword [esi]
lea ecx, [ebp - 0x10]
push edi
mov ebx, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.0041d520
test eax, eax
je 0x44658a
sub esp, 8
push 0x2001f
push 0
push ecx
push dword [esi]
lea ecx, [ebp - 0x10]
push edi
call fcn.0041d520
test eax, eax
je 0x44658a
mov edi, dword [ebp - 0x10]
xor bl, bl
jmp 0x44665e
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 4
push 0
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test edi, edi
je 0x4465b7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov esi, dword [0x55e860]
mov ecx, 0x15
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
cmp edx, 0xd
jne 0x446659
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x4465d6
mov dword [0x55e860], esi
test ebx, ebx
sete bl
test edi, edi
je 0x446669
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55e860]
imul eax, eax
sub esp, 0x10
push ebx
push esi
mov esi, edx
cdq
mov ebx, 0xd
idiv ebx
push edi
mov edi, ecx
cmp edx, 8
jne 0x446884
push 4
call fcn.004b0975
mov ecx, dword [0x55e860]
add esp, 4
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push 0x2001f
push dword [eax]
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.0041d5a0
test eax, eax
je 0x4468e2
mov ecx, dword [0x55e860]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 5
idiv ecx
cmp edx, 3
jne 0x4468db
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov esi, dword [ebp - 0x10]
xor bl, bl
jmp 0x44691f
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [esi]
mov esi, dword [ebp - 0x10]
push esi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x44690d
cmp dword [ebp - 4], 4
cmovne edi, ebx
test esi, esi
je 0x44691a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test edi, edi
sete bl
test esi, esi
je 0x44692a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push 0
push dword [eax]
mov esi, edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44696c
pop edi
xor al, al
pop esi
pop ebp
ret
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ebp
ret
Function at 0x447110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push 0
push dword [eax]
mov dword [ebp - 4], edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44713e
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edde8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x55e860]
imul eax, eax
mov dword [ebp - 0x18], 0
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x44a885
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 5
jne 0x44a890
dec dword [0x55fa44]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ebx, al
mov dword [ebp - 0x14], ecx
cmp eax, 0x80000000
jae 0x44a8b2
mov edi, eax
shr edi, 0x10
cmp ebx, 6
jb 0x44a8d7
cmp ecx, 2
jb 0x44a8d7
mov ecx, esi
call fcn.0044ac20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push ebx
push 0x53bfdc
push eax
mov dword [ebp - 4], 0
call fcn.00404f10
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
add esp, 0x14
mov ecx, edi
call fcn.004022e0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44a937
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret