joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e869
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], ecx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x400
push eax
push ebx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov eax, dword [0x45ef80]
inc esi
add eax, 0x878
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40e978
inc ebx
cmp dword [ebp - 4], 1
je 0x40e8c6
cmp dword [ebp - 4], 2
je 0x40e8c6
cmp dword [ebp - 4], 7
je 0x40e8c6
xor ecx, ecx
jmp 0x40e8c9
push 2
pop ecx
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40e93a
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x45ef80]
push 0
add eax, 0x878
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e92f
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0040ecbf
test eax, eax
jne 0x40e92f
push dword [ebp - 8]
push edi
push dword [ebp - 4]
push eax
mov eax, dword [0x45ef80]
add eax, 0x878
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40e931
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40e93c
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x400
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x45ef80]
add eax, 0x878
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40e8af
test esi, esi
je 0x40ea06
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov eax, dword [0x45ef80]
push 0x400
add eax, 0x78
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc edi
test eax, eax
jne 0x40ea06
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x45ef80]
push 9
push 0
add eax, 0x78
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e9fe
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x45ef80]
add eax, 0x78
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e9f5
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040e7b5
push dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e869
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e97d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40ebd5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 9
push esi
mov ebx, edx
mov dword [ebp - 0xc], esi
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ec06
push ebx
push edi
jmp 0x40ecb4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x40ec48
cmp edi, 0xea
je 0x40ec48
cmp edi, 0x7a
jne 0x40ec64
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40ec71
push 8
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40ecba
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40ec93
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0040ebd5
test eax, eax
je 0x40ec94
inc esi
cmp eax, 0x103
je 0x40eca0
cmp esi, dword [ebp - 0x10]
jb 0x40ec71
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fa4a
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x220], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
mov dword [eax], edi
mov dword [ebp - 0x214], edi
cmp dword [ebx + 0x10], edi
jne 0x40fa96
mov eax, dword [ebx + 0x2c]
mov ebx, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
jmp 0x40faff
mov esi, 0x8007000e
call fcn.0040f6d0
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40faeb
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 8]
push edi
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x40face
movzx esi, si
or esi, 0x80070000
mov ebx, dword [ebp - 0x218]
mov eax, esi
push dword [ebp - 0x21c]
not eax
shr eax, 0x1f
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40faf1
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x40fb8a
mov eax, dword [ebp - 0x214]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jle 0x40fb3a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40fb70
cmp dword [ebp - 0x218], edi
je 0x40fb6c
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jle 0x40fb6e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40fb8a
cmp esi, 0x80070005
je 0x40fb8a
cmp dword [ebx], edi
je 0x40fb90
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fb90
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0041ca70
leave
ret 0xc
Function at 0x411216
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x818], eax
mov edx, dword [0x4012c0]
push ebx
push esi
push edi
call fcn.00410b25
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
push 2
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41143d
lea ecx, [esp + 0x10]
call fcn.00411c59
test eax, eax
je 0x411427
dec dword [0x45edfc]
push 0x20
pop ebx
push 0x5c
pop ecx
call fcn.00411d9a
mov esi, 0x401f90
test eax, eax
jne 0x41128f
mov esi, dword [0x4012c0]
movzx eax, word [esi]
test ax, ax
je 0x4112b3
mov ecx, eax
call fcn.00411d9a
lea esi, [esi + 2]
test eax, eax
je 0x41141d
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x411299
push 0x5c
pop ecx
call fcn.00411d9a
mov edi, eax
test edi, edi
je 0x41141d
xor esi, esi
jmp 0x4112ea
mov cx, word [esp + 0x10]
cmp cx, bx
je 0x4112fb
call fcn.00411dc8
test eax, eax
jne 0x4112fb
cmp esi, 0x3ff
jae 0x4112f9
mov word [esp + esi*2 + 0x20], cx
inc esi
lea ecx, [esp + 0x10]
call fcn.00411c59
test eax, eax
jne 0x4112c9
jmp 0x4112fb
xor edi, edi
test edi, edi
je 0x41141d
add esi, esi
mov dword [esp + 0x18], 0x100
cmp esi, 0x800
jae 0x41145c
xor eax, eax
mov word [esp + esi + 0x20], ax
call fcn.00411be7
push 0x3d
pop ecx
call fcn.00411d9a
test eax, eax
je 0x411338
mov ecx, ebx
call fcn.00411d9a
push 0x200
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
jmp 0x4113ab
test ebx, ebx
je 0x411400
mov dx, word [esp + 0x10]
mov cx, dx
call fcn.00411dc8
test eax, eax
jne 0x4113bc
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp edi, eax
jb 0x4113a2
lea eax, [ecx + 0x100]
cmp eax, ecx
jb 0x4113ba
mov dword [esp + 0x18], eax
add eax, eax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x4113bc
mov dx, word [esp + 0x10]
mov esi, eax
test ebx, ebx
je 0x4113ab
mov word [esi + edi*2], dx
inc edi
lea ecx, [esp + 0x10]
call fcn.00411c59
test eax, eax
jne 0x411352
jmp 0x4113bc
xor ebx, ebx
test ebx, ebx
je 0x411400
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00410af7
test eax, eax
js 0x4113fc
push dword [esp + 0x1c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [esp + 0x28]
push 1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x41140a
mov dword [0x41edf0], 0x84
jmp 0x41140a
xor ebx, ebx
jmp 0x41140a
mov dword [0x41edf0], 0x132
test esi, esi
je 0x411415
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x41125e
call fcn.00411c13
jmp 0x41125e
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411447
mov dword [0x41edf0], 0x83
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ca70
mov esp, ebp
pop ebp
ret
call fcn.0041cbb8
int3
Function at 0x411c59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x45edfc]
mov ebx, ecx
push edi
mov edi, dword [0x45ee04]
cmp esi, edi
jne 0x411d7b
xor esi, esi
lea eax, [ebp - 4]
cmp dword [0x41e18c], 1
push esi
push eax
jne 0x411cb0
push 0x10000
push 0x43edf8
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411ccb
mov ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x411d09
mov edi, 0x10000
push edi
push 0x41edf8
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411cdc
mov dword [0x41edf0], 0x82
xor eax, eax
jmp 0x411d95
mov eax, dword [0x460220]
push edi
push 0x43edf8
push dword [ebp - 4]
neg eax
push 0x41edf8
sbb eax, eax
and eax, 0xfde6
push 1
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [0x45ee0c]
add eax, ecx
mov dword [0x45ee04], edi
mov ecx, dword [0x45ee08]
mov dword [0x45edfc], esi
mov dword [0x45ee0c], eax
test ecx, ecx
je 0x411d34
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x411d37
push 0x64
pop eax
cmp dword [0x45ee10], eax
je 0x411d79
mov ecx, dword [0x41ede0]
mov dword [0x45ee10], eax
test ecx, ecx
je 0x411d79
push esi
push eax
push 0x402
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x41ede0]
call fcn.0040ea0f
test eax, eax
jne 0x411d5e
mov edi, dword [0x45ee04]
mov esi, dword [0x45edfc]
cmp esi, edi
jge 0x411cd5
mov cx, word [esi*2 + 0x43edf8]
xor eax, eax
mov word [ebx], cx
inc dword [0x45edfc]
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411ddb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [0x45ef80]
and dword [esp + 4], 0
push ebx
push esi
push edi
push 0
push 9
push 0x110a
push dword [eax + 0x60]
mov edi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41edf0], 0x88
mov esi, eax
test edi, edi
je 0x411e57
mov ecx, dword [0x45ef80]
push 0
push edi
push esi
call fcn.0040a2c5
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00410c27
test eax, eax
je 0x411e57
mov dword [0x41edf0], 0x89
jmp 0x411f6d
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45edf8], eax
cmp eax, 0xffffffff
je 0x411f55
and dword [0x45edfc], 0
lea ecx, [esp + 0x14]
and dword [0x45ee00], 0
push 0
push ecx
push 2
push 0x40210c
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x401fd0
call fcn.0041243c
mov ecx, 0x4020d4
call fcn.0041243c
mov ecx, 0x402010
call fcn.0041243c
mov ecx, 0x4020d8
call fcn.0041243c
test edi, edi
je 0x411ee1
push edi
mov edx, 0x428
lea ecx, [esp + 0x1c]
call fcn.00404f69
mov ecx, dword [esp + 0x10]
jmp 0x411f39
mov ecx, dword [0x45ef80]
push esi
call fcn.0040a2c5
push dword [0x4012d8]
mov ebx, 0x428
lea ecx, [esp + 0x1c]
mov edx, ebx
mov esi, eax
call fcn.00404f69
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00410b25
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00412193
push dword [0x4012e4]
mov edx, ebx
lea ecx, [esp + 0x1c]
call fcn.00404f69
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00410b25
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.00412193
call fcn.0041265c
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411f5f
mov dword [0x41edf0], 0x8a
test edi, edi
je 0x411f6d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ca70
mov esp, ebp
pop ebp
ret

Function at 0x411f82
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x45ef80]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 9
push 0x110a
mov dword [esp + 0x18], ebx
mov esi, ecx
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41edf0], 0x88
test edi, edi
je 0x411fe5
mov ecx, dword [0x45ef80]
push ebx
push edi
push eax
call fcn.0040a2c5
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00410c27
test eax, eax
je 0x411fe5
mov dword [0x41edf0], 0x89
jmp 0x41203e
push 1
mov edi, 0x4020e0
push edi
call fcn.0040ed18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x412037
cmp eax, 6
je 0x412026
xor ecx, ecx
cmp eax, 0x522
sete cl
add ecx, 0x8d
mov dword [0x41edf0], ecx
jmp 0x412030
mov dword [0x41edf0], 0x8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
call fcn.0040ed18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41245f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
push edi
push 0x22
pop eax
mov edi, ecx
mov ecx, eax
call fcn.0041260e
movzx esi, word [edi]
test si, si
je 0x4124b0
push ebx
push 0x5c
pop ebx
movzx eax, si
lea edi, [edi + 2]
cmp eax, 0xa
je 0x4124d9
cmp eax, 0xd
je 0x4124bc
push 0x22
pop ecx
cmp ax, cx
je 0x412498
cmp si, bx
jne 0x41249f
mov ecx, ebx
call fcn.0041260e
movzx ecx, si
call fcn.0041260e
movzx esi, word [edi]
test si, si
jne 0x41247b
pop ebx
push 0x22
pop eax
pop edi
mov ecx, eax
pop esi
jmp fcn.0041260e
cmp dword [0x45f9fc], 0
je 0x4124d1
mov ecx, ebx
call fcn.0041260e
push 0x72
pop eax
jmp 0x4124d4
movzx eax, si
movzx ecx, ax
jmp 0x4124a2
cmp dword [0x45f9fc], 0
je 0x41249f
mov ecx, ebx
call fcn.0041260e
push 0x6e
pop ecx
jmp 0x4124a2

Function at 0x4125ca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1c
pop esi
push 0x30
mov edi, ecx
pop ebx
mov ecx, esi
mov eax, edi
shr eax, cl
and eax, 0xf
movzx ecx, word [eax*2 + 0x402040]
test edx, edx
jne 0x4125f1
cmp cx, bx
je 0x4125f9
call fcn.0041260e
xor edx, edx
inc edx
sub esi, 4
jns 0x4125d7
pop edi
pop esi
test edx, edx
jne 0x41260c
mov ecx, ebx
pop ebx
jmp fcn.0041260e
pop ebx
ret

Function at 0x41260e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov si, cx
cmp si, 0xa
je 0x412622
inc dword [0x45ee00]
jmp 0x412631
push 0xd
pop ecx
call fcn.0041260e
and dword [0x45ee00], 0
mov eax, dword [0x45edfc]
mov ecx, 0x10000
cmp eax, ecx
jae 0x412652
mov word [eax*2 + 0x43edf8], si
mov eax, dword [0x45edfc]
inc eax
mov dword [0x45edfc], eax
pop esi
cmp eax, ecx
je fcn.0041265c
ret

Function at 0x41265c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x45edfc]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x4126eb
mov eax, dword [0x45ef80]
cmp dword [eax + 0x68], 4
jne 0x4126b7
push edi
push ebx
push ebx
push 0x20000
mov edi, 0x41edf8
push edi
push ecx
push 0x43edf8
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x4126e1
cmp esi, dword [ebp - 4]
jmp 0x4126df
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ecx + ecx]
push eax
push 0x43edf8
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4126e1
mov eax, dword [0x45edfc]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x4126eb
mov dword [0x41edf0], 0x8d
pop esi
mov dword [0x45edfc], ebx
pop ebx
leave
ret
Function at 0x412eba
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45ee40], eax
test eax, eax
je 0x412f7c
mov ecx, 0xfeff
xor edi, edi
mov word [eax], cx
xor eax, eax
inc eax
mov dword [0x45ee44], 0x2000
mov dword [0x45ee48], eax
mov dword [0x45ee14], eax
mov dword [0x45ee18], edi
mov dword [0x45ee4c], 0x402154
call fcn.00412f9e
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412f66
mov ecx, dword [0x45ee48]
lea eax, [ebp - 4]
push edi
push eax
add ecx, ecx
mov dword [ebp - 4], edi
push ecx
push dword [0x45ee40]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412f5d
mov dword [0x45ee18], 0x8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412f70
mov dword [0x45ee18], 0x8a
push dword [0x45ee40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x45ee18]
mov eax, ecx
sub eax, 0x90
je 0x412f91
dec eax
sub eax, 1
jne 0x412f96
mov ecx, 0xd5
pop edi
mov eax, ecx
pop esi
leave
ret 8

Function at 0x4130cb
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x18
push 0x41d388
call fcn.0041d214
mov ebx, edx
mov dword [ebp - 0x20], ebx
mov edi, ecx
push 0x1fa5
call fcn.0040e6e0
pop ecx
mov esi, eax
test esi, esi
je 0x4130fd
mov ecx, esi
call fcn.00413776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
call fcn.00413776
call fcn.00413e01
mov ecx, edi
call fcn.004134f0
mov ecx, edi
call fcn.004135ed
mov ecx, edi
call fcn.0041320c
cmp dword [0x45ee18], 0
jne 0x4131f9
xor edx, edx
mov ebx, edx
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x413135
sub esi, ecx
sar esi, 1
lea eax, [esi + 0x400]
mov dword [ebp - 4], edx
add eax, eax
call fcn.0041d270
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x20]
lea edx, [esi + 0x400]
mov ecx, eax
call fcn.00404f69
mov eax, dword [ebp - 0x24]
lea esi, [eax + esi*2]
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
call fcn.00413e01
jmp 0x4131cb
mov eax, ebx
inc ebx
push 0x3ff
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4131f9
lea eax, [ebp - 0x20]
push eax
push 9
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4131cb
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.004130cb
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x45ee14], 0
jne 0x41318e
jmp 0x4131f9
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41320c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x818], ecx
push esi
push edi
cmp dword [0x45ee14], ebx
je 0x413425
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push eax
push 0
lea eax, [ebp - 0x80c]
mov edi, ebx
push eax
push 0
lea eax, [ebp - 0x814]
push eax
mov eax, dword [0x45ef80]
add eax, 0x878
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
test eax, eax
jne 0x413425
push 0x1fa8
call fcn.0040e6e0
mov esi, eax
pop ecx
test esi, esi
je 0x413298
mov ecx, esi
call fcn.00413776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push 0x40215c
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00402a0c
add esp, 0x10
lea ecx, [ebp - 0x808]
call fcn.00413776
call fcn.00413e01
push 0x1fa9
call fcn.0040e6e0
mov esi, eax
pop ecx
test esi, esi
je 0x4132e1
mov ecx, esi
call fcn.00413776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x814], 0
je 0x4132fd
mov ecx, dword [0x45ef80]
lea ecx, [ecx + 0x878]
call fcn.00413776
jmp 0x41331c
push 0x1fad
call fcn.0040e6e0
mov esi, eax
pop ecx
test esi, esi
je 0x41331c
mov ecx, esi
call fcn.00413776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00413e01
mov ecx, dword [ebp - 0x80c]
call fcn.004136f2
push 0x1faa
mov edi, eax
call fcn.0040e6e0
mov esi, eax
pop ecx
test esi, esi
je 0x41334d
mov ecx, esi
call fcn.00413776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0040e6e0
pop ecx
test eax, eax
je 0x41335f
mov ecx, eax
call fcn.004136df
call fcn.00413e01
cmp dword [ebp - 0x80c], 1
je 0x413383
cmp dword [ebp - 0x80c], 2
je 0x413383
cmp dword [ebp - 0x80c], 7
je 0x413383
xor ecx, ecx
jmp 0x413386
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41341b
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [0x45ef80]
push 0
add eax, 0x878
push eax
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4133f5
lea eax, [ebp - 0x810]
push eax
push esi
lea ecx, [ebp - 0x80c]
call fcn.0040ecbf
test eax, eax
jne 0x4133f5
push dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov ecx, esi
call fcn.00413434
jmp 0x4133ff
mov dword [0x45ee18], 0x92
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x45ee14], 0
mov ecx, dword [ebp - 0x818]
jne 0x413238
jmp 0x413425
mov dword [0x45ee18], 0x90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret