joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ed84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
call fcn.0042e830
mov esp, ebp
pop ebp
ret

Function at 0x4305f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4306fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.00403144
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x2c]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov ax, word [eax + edx*2 + 4]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov ax, word [ebp - 0x12]
call fcn.00418344
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, dword [0xa87ecc]
mov ebx, dword [ebp - 0x18]
mov ax, word [eax + ebx*2 + 4]
call fcn.00418344
cmp dword [ebp - 0x24], 0xf8
jl 0x4306b2
mov dword [ebp - 0x24], 0xff
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x25], al
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e4
jne 0x430652
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430703
lea eax, [ebp - 0x2c]
call fcn.004030ac
ret
Function at 0x45a11c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a2d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
imul edx, dword [ebp - 4], 0xc3
mov ecx, dword [0xa87450]
lea edx, [ecx + edx*4]
imul ecx, dword [ebp - 8], 0xc9
lea edx, [edx + ecx - 0xb9]
call fcn.004031dc
cmp dword [ebp - 0x14], 0
je 0x45a2b2
push 0x45a2e8
push dword [ebp - 0x14]
push 0x45a304
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032e4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x8004
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax*8 + 0xa88144]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 - 0xc8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax*8 + 0xa88144]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 - 0xc8]
mov edx, dword [ebp - 0x10]
movzx eax, word [eax + edx*2 + 4]
mov ax, word [eax*2 + 0xa8c5f0]
mov edx, dword [ebp - 8]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx*8 + 0xa88144]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4 - 0xc8]
mov ecx, dword [ebp - 0x10]
mov word [edx + ecx*2 + 4], ax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax*8 + 0xa88144]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 - 0xc8]
mov edx, dword [ebp - 0x10]
movzx eax, word [eax + edx*2 + 4]
mov ax, word [eax*4 + 0xa8839c]
mov edx, dword [ebp - 8]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx*8 + 0xa88144]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4 - 0xc8]
mov ecx, dword [ebp - 0x10]
mov word [edx + ecx*2 + 4], ax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x4000
jne 0x45a1f4
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x32
jne 0x45a1c0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jne 0x45a13f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2dc
lea eax, [ebp - 0x14]
call fcn.004030ac
ret
Function at 0x485dc8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce8
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040340c
xor eax, eax
push ebp
push 0x485efb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004139d8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [0xbaea30]
push dword [0xbaea2c]
push dword [0xbaea28]
push dword [0xbaea24]
push 0
push 0
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.vorbisfile.dll_ov_open_callbacks
add esp, 0x20
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2f8]
push eax
call sub.vorbisfile.dll_ov_info
add esp, 8
mov esi, eax
lea edi, [ebp - 0x318]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x2f8]
push eax
call sub.vorbisfile.dll_ov_pcm_total
add esp, 8
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2f8]
push eax
call sub.vorbisfile.dll_ov_clear
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00413a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485f02
lea eax, [ebp - 4]
call fcn.004030ac
ret
Function at 0x1001fff
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1008464]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x10013a8
push 0x80000002
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x10021f1
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0x1001388
push ebx
push dword [ebp - 0x420]
mov dword [ebp - 0x418], 0x208
call esi
test eax, eax
jne 0x10020f1
cmp dword [ebp + 8], 0x412
jne 0x10020b5
cmp dword [ebp - 0x418], eax
je 0x10020b5
push 0x1001360
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10020b5
push 0x1001338
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10012c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call edi
test eax, eax
je 0x1002100
mov dword [ebp - 0x41c], 1
jmp 0x10021e4
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x10012b4
push dword [ebp - 0x424]
mov dword [ebp - 0x418], 0x208
call esi
test eax, eax
jne 0x10021d8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x420]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call ebx
test eax, eax
jne 0x10021d8
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x10012ac
push dword [ebp - 0x424]
mov dword [ebp - 0x418], 0x208
call esi
test eax, eax
je 0x10021a6
mov dword [ebp - 0x41c], 1
jmp 0x10021d8
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x1001290
push dword [ebp - 0x420]
call ebx
test eax, eax
jne 0x10021d8
mov dword [ebp - 0x41c], esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
call fcn.0100637b
leave
ret 4
Function at 0x100220a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1008464]
or dword [ebp - 0x50], 0xffffffff
push esi
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x3c]
push 0x1001468
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x2001f
push esi
push 0x1001438
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002265
xor eax, eax
jmp 0x1002383
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x44], 1
push dword [ebp - 0x44]
lea eax, [ebp - 0x14]
push 0x1001430
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x40], esi
je 0x100233a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x40], 0x10
jne 0x10022d7
push 0x12
lea eax, [ebp - 0x28]
push eax
push 1
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
mov word [ebp - 0x18], si
call ebx
cmp dword [ebp + 8], esi
je 0x100232a
cmp dword [ebp - 0x40], 0x10
jb 0x100232a
cmp dword [ebp - 0x40], 0x12
ja 0x100232a
cmp dword [ebp - 0x4c], esi
jne 0x100232a
mov eax, 0x1001428
push 8
push eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100230c
mov dword [ebp - 0x4c], 1
jmp 0x100232a
push 8
lea eax, [ebp - 0x28]
push 0x1001414
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100232a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x3e7
jle 0x1002273
cmp dword [ebp + 8], esi
je 0x100236d
cmp dword [ebp - 0x4c], esi
jne 0x100236d
cmp dword [ebp - 0x50], 0xffffffff
je 0x100236d
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push 0x1001430
push eax
call edi
add esp, 0xc
push 0x12
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
call ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x44], 0x3e7
pop ebx
setle al
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100637b
leave
ret 4
Function at 0x1002518
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1008464]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x1002675
push ebx
push esi
mov esi, 0x1001504
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x214], eax
jle 0x1002673
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push ebx
push 0x10014d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002673
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x10014c0
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002667
cmp dword [ebp - 0x214], ebx
jbe 0x1002639
push edi
lea eax, [ebp - 0x234]
push eax
push ebx
push esi
push dword [ebp + 0x109015ff]
add byte [ecx], al
and al, 0x11
add byte [ecx], al
test eax, eax
je 0x100261a
push 1
lea eax, [ebp - 0x234]
push eax
call sub.SETUPAPI.dll_pSetupGetField
mov edi, eax
test edi, edi
je 0x100261a
push 2
lea eax, [ebp - 0x234]
push eax
call sub.SETUPAPI.dll_pSetupGetField
test eax, eax
mov dword [ebp - 0x220], eax
je 0x100261a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002625
inc ebx
cmp ebx, dword [ebp - 0x214]
jb 0x10025c3
jmp 0x1002638
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x10014c0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100637b
leave
ret 4

Function at 0x1002686
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1008464]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
push 0xf003f
push 0
push 0x1001520
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100270b
push esi
push edi
xor edi, edi
mov esi, dword [edi + 0x1001278]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push esi
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10026f8
cmp dword [ebp - 0x6c], 3
jne 0x10026f8
lea eax, [ebp - 0x60]
push eax
push esi
push dword [ebp - 0x64]
push dword [ebp + 8]
call fcn.010024c0
add edi, 4
cmp edi, 0x18
jb 0x10026b9
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0100637b
leave
ret 4
Function at 0x1002740
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1008464]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], esi
lea eax, [ebp - 0x20c]
je 0x1002772
push 0x10015a4
jmp 0x1002777
push 0x1001568
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, 0xffffffff
je 0x100279b
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
cmp eax, ebx
mov dword [ebp - 0x228], eax
jg 0x10027a2
xor eax, eax
jmp 0x100294d
cmp eax, ebx
mov dword [ebp - 0x214], ebx
jle 0x100294a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexW]
test eax, eax
je 0x1002931
push 1
lea eax, [ebp - 0x244]
push eax
call sub.SETUPAPI.dll_pSetupGetField
cmp eax, ebx
mov dword [ebp - 0x230], eax
je 0x1002931
push 2
lea eax, [ebp - 0x244]
push eax
call sub.SETUPAPI.dll_pSetupGetField
mov esi, eax
cmp esi, ebx
je 0x1002931
push 3
lea eax, [ebp - 0x244]
push eax
call sub.SETUPAPI.dll_pSetupGetField
cmp eax, ebx
mov dword [ebp - 0x21c], eax
je 0x1002931
push 4
lea eax, [ebp - 0x244]
push eax
call sub.SETUPAPI.dll_pSetupGetField
cmp eax, ebx
mov dword [ebp - 0x234], eax
je 0x1002931
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
push str.HKEY_LOCAL_MACHINE
call fcn.01003142
test eax, eax
je 0x1002931
lea eax, [ebp - 0x210]
push eax
push 0x2001f
push ebx
push esi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002931
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], ebx
push dword [ebp - 0x210]
call edi
test eax, eax
jne 0x1002925
mov eax, dword [ebp - 0x218]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1002925
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x218]
push esi
push dword [ebp - 0x220]
push ebx
push dword [ebp - 0x234]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100291d
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x228]
jl 0x10027b7
pop edi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100637b
leave
ret 8
Function at 0x1002bb7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001648
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c3d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x100161c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1002c34
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10015f8
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1002c34
cmp dword [ebp - 0x10], ebx
je 0x1002c34
cmp dword [ebp - 0x14], ebx
je 0x1002c34
inc eax
jmp 0x1002c3f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c69
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1008464]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x408]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001678
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002cdd
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push esi
push 0x1001664
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002cdd
lea eax, [ebp - 0x404]
push eax
call fcn.01002c49
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0100637b
leave
ret
Function at 0x1002dd8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1008464]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1002f06
lea eax, [ebp - 0x254]
push eax
push 0x10016d0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
jne 0x1002e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x1002f06
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, 0x10016c8
push 0x10016c4
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
je 0x1002ecf
push esi
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
je 0x1002ecf
test byte [ebp - 0x254], 0x10
je 0x1002eab
lea eax, [ebp - 0x228]
push eax
call fcn.01002dd8
test eax, eax
je 0x1002f12
test byte [ebp - 0x254], 1
je 0x1002e9c
and dword [ebp - 0x254], 0xfffffffe
push dword [ebp - 0x254]
lea eax, [ebp - 0x228]
push eax
call ebx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1002ecf
test byte [ebp - 0x254], 5
je 0x1002ec2
push 0x80
lea eax, [ebp - 0x228]
push eax
call ebx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002e40
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100637b
leave
ret 4
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1002f03
Function at 0x1002f8a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1008464]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], esi
push 0x20019
setne al
push esi
push 0x1001710
mov dword [ebp - 0x214], esi
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100305a
cmp dword [ebp + 8], esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x20c], si
push esi
je 0x100300c
push 0x10016ec
jmp 0x1003011
push 0x10016d8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x100305a
cmp word [ebp - 0x20c], si
je 0x100305a
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100305a
mov dword [ebp - 0x214], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
pop ebx
call fcn.0100637b
leave
ret 8

Function at 0x1003073
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1008464]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001710
push 0x80000001
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003128
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x20c], di
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1003128
cmp word [ebp - 0x20c], di
je 0x1003128
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1003128
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.0100637b
leave
ret 8