joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40163b
Capabilities:
Get hostname

Disassembly:
jmp 0x405a40
push 0xffffffffffffffff
push 0x55423f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x599508]
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
push ecx
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0x104
call fcn.0052ae12
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0052ae61
mov esi, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0052a757
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.0052a9e2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x40bd6d
Capabilities:
Get common file path

Disassembly:
jmp 0x40bd50
push 0xffffffffffffffff
push 0x554c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x599508]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.0052ae12
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40bde6
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0052a9e2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0052a9e2
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052a9e2
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0052ae61
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.0052a757
push 0x58c914
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0051efd1
push 0x58c914
lea ecx, [esp + 8]
call fcn.0052adbe
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0052a757
push 0x33
push 0x592a50
mov ecx, esi
call fcn.004011cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.0052a9e2
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0052a9e2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0052a9e2
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052a9e2
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x40befd
Capabilities:
Get common file path

Disassembly:
jmp 0x40bee0
push 0xffffffffffffffff
push 0x554cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x599508]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.0052ae12
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40bf76
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0052a9e2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0052a9e2
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052a9e2
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0052ae61
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.0052a757
push 0x58c914
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0051efd1
push 0x58c914
lea ecx, [esp + 8]
call fcn.0052adbe
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0052a757
push 0x41
push 0x592cb8
mov ecx, esi
call fcn.004011cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.0052a9e2
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0052a9e2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0052a9e2
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0052a9e2
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x415b1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x415b5d
call fcn.00542b4c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415b5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415b74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x415b74
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x439440
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x439499
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x439499
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4394a0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x43947d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43949b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x43ef70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x43efc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43efc0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43efc5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43efab
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43efd2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x449cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x449cf1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x449cf3
mov esi, edi
test esi, esi
je 0x449d68
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x449d5d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x449d5d
cmp dword [esp + 0x1c], eax
jbe 0x449d2e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x449d5d
cmp esi, edi
je 0x449d4f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x449d68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x449d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x449de5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x449de5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x449de5
cmp dword [esp + 0x18], eax
jbe 0x449dcb
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x449de9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x449ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x449f1f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x449f1f
cmp dword [esp + 0xc], 3
jne 0x449f1f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x449f1f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x449f1f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x44a000
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x44a074
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44a074
cmp dword [esp + 0x10], 3
jne 0x44a074
mov edx, dword [esp + 0x18]
push edx
call fcn.00529cd7
mov edi, eax
add esp, 4
test edi, edi
je 0x44a074
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44a06b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.00529d00
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x44a080
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5579bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x599508]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x44a0eb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44a0ed
mov esi, edi
test esi, esi
je 0x44a1b7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a1ac
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x44a12f
cmp eax, 2
je 0x44a12f
cmp eax, 6
je 0x44a12f
cmp eax, 7
jne 0x44a1ac
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.00529cd7
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x44a192
lea ecx, [esp + 0x14]
call fcn.0052ab6b
cmp esi, dword [esp + 0x14]
je 0x44a187
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00529d00
add esp, 4
jmp 0x44a1c9
call fcn.00529d00
add esp, 4
lea ecx, [esp + 0x10]
push 0x5af6cc
call fcn.0052ab6b
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x44a1b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x44a1c9
push eax
lea ecx, [esp + 0x14]
call fcn.0052ab6b
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0052a757
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0052a9e2
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x44a310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x44a347
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44a34a
mov esi, dword [ebp + 8]
test esi, esi
je 0x44a4fb
call fcn.0046ece0
test eax, eax
je 0x44a434
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x44a36b
mov dword [ebp + 0x10], eax
jmp 0x44a39e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.004231a0
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a4ef
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x44a3d8
cmp eax, 2
je 0x44a3d8
cmp eax, 6
je 0x44a3d8
cmp eax, 7
jne 0x44a4ef
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.00529cd7
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x44a4da
mov ecx, dword [ebp + 0x18]
call fcn.0043b230
cmp esi, dword [ebp + 8]
je 0x44a4c4
jmp 0x44a4bd
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a4ef
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x44a46e
cmp eax, 2
je 0x44a46e
cmp eax, 6
je 0x44a46e
cmp eax, 7
jne 0x44a4ef
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.00529cd7
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x44a4da
mov ecx, dword [ebp + 0x18]
call fcn.0043b300
cmp esi, dword [ebp + 8]
je 0x44a4c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00529d00
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00529d00
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x5af6cc
call fcn.0043b300
cmp esi, dword [ebp + 8]
je 0x44a4fb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44a760
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ecx]
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00524cca
test esi, esi
je 0x44a84c
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a84c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x44a7bc
cmp eax, 2
je 0x44a7bc
cmp eax, 6
je 0x44a7bc
cmp eax, 7
jne 0x44a84c
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call fcn.00529cd7
mov ecx, dword [esp + 0x20]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a843
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x44a82d
mov edx, dword [ebp + 8]
push esi
push edx
mov ecx, ebp
call fcn.00524ee0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x44a809
push ebx
call fcn.00529d00
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.00529d00
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x44aed0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x44af06
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x44af06
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x44af40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x557a88
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x44af96
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44af99
mov esi, dword [ebp + 8]
test esi, esi
je 0x44b07f
call fcn.0046ece0
test eax, eax
je 0x44b01a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x44afb5
xor ebx, ebx
jmp 0x44afe5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.004231a0
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.00421d8c
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44b073
cmp esi, dword [ebp + 8]
je 0x44b013
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x44b081
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.00434dd0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44b064
cmp esi, dword [ebp + 8]
je 0x44b04e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004355e0
mov eax, 1
jmp 0x44b081
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004355e0
cmp esi, dword [ebp + 8]
je 0x44b07f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b190
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x44b1dc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x44b1e6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x44b328
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 8]
test eax, eax
jle 0x44b232
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.0044b340
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.0052a9e2
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x44b203
mov eax, dword [esp + 0x20]
push eax
call fcn.00529cd7
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x44b328
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jle 0x44b2d3
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.0044b340
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.0052a9e2
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x44b272
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44b310
cmp esi, dword [esp + 0x1c]
je 0x44b2fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00529d00
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call fcn.00529d00
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x44b328
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret