joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec47f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4ec53d
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4ec532
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4ec532
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4ec532
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4ec506
sub eax, 1
je 0x4ec4d2
sub eax, 1
jne 0x4ec532
mov edi, 0x428e
jmp 0x4ec50b
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4ec50b
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.005417cc
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4ec50b
add edi, 3
jmp 0x4ec50b
mov edi, 0x3ea0
push edi
call fcn.004092cd
test eax, eax
je 0x4ec53d
push edi
push eax
mov ecx, 0x5cb968
call fcn.00407a2c
test eax, eax
je 0x4ec53d
mov eax, dword [0x5cb968]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4ec534
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00408199
int3

Function at 0x4f7ef7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4f7f46
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00547575
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4f7f3b
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4f7f29
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00408199
int3
Function at 0x545920
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5a0460
push str.FlsAlloc
push 0
call fcn.00545899
mov esi, eax
add esp, 0x10
test esi, esi
je 0x545952
push dword [ebp + 8]
mov ecx, esi
call fcn.005417cc
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x545994
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5a0484
push str.FlsGetValue
push 2
call fcn.00545899
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x5459c5
mov ecx, esi
call fcn.005417cc
call esi
jmp 0x5459cb
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x5459ce
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5a0498
push str.FlsSetValue
push 3
call fcn.00545899
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x545a02
mov ecx, esi
call fcn.005417cc
call esi
jmp 0x545a08
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x55b3aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055b069

Function at 0x55b3b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055b1ec

Function at 0x55efc8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055e8e0

Function at 0x55efd3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055eb1f

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, reloc.winmm.dll_mmioWrite
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00401b80
add esp, 0xc
mov dword [ebp - 0x58], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401b80
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.SnippingTool.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401058
mov byte [ebp - 1], 1
jmp 0x40105c
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [ebp - 2], cl
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4022e6
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x40c224
push str.FlsAlloc
push 0
call fcn.0040225f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402318
push dword [ebp + 8]
mov ecx, esi
call fcn.0040182e
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40235a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x40c254
push str.FlsSetValue
push 3
call fcn.0040225f
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40238e
mov ecx, esi
call fcn.0040182e
call esi
jmp 0x402394
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x10068ff
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, 0x18
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
mov edi, 0x10122c8
push edi
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
mov esi, 0x10162c8
push esi
mov dword [ebp - 4], eax
mov ebx, 0x100
push eax
jmp 0x1006959
push dword [ebp - 8]
inc dword [ebp - 4]
push edi
push dword [ebp - 0x10]
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x1006930
and dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebx
mov esi, 0x10163c8
push esi
push 0
jmp 0x10069ce
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10069c9
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10069c0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.010068ff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call edi
test eax, eax
je 0x1006985
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10069e3
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x98]
push eax
xor ebx, ebx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006ad8
cmp dword [ebp - 0x88], 2
jne 0x1006ad8
cmp dword [ebp - 0x94], 5
jbe 0x1006a34
inc ebx
jmp 0x1006ad8
jne 0x1006ad8
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x90], edi
jbe 0x1006a4d
mov ebx, edi
jmp 0x1006ad7
jne 0x1006ad7
mov eax, 0xa28
cmp dword [ebp - 0x8c], eax
ja 0x1006a46
jne 0x1006ad7
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push 0x1001228
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006ad7
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x100121c
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006acb
cmp dword [ebp - 0xa0], 4
jne 0x1006acb
cmp dword [ebp - 0xa4], 0x100
jb 0x1006acb
mov ebx, edi
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0100d038
leave
ret
Function at 0x1006aea
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
and dword [ebp - 0x210], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1002290
push 0x1002474
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006bdf
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
push 0
and eax, 0x10022c4
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006bd3
cmp dword [ebp - 0x214], eax
je 0x1006bd3
cmp dword [ebp - 0x21c], 2
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
jne 0x1006bc1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x1006bd3
cmp eax, dword [ebp + 0x10]
ja 0x1006bd3
jmp 0x1006bc9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x210], 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
call fcn.0100d038
leave
ret 0x10

Function at 0x1006bf7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002110
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006c40
push esi
push esi
push esi
push esi
push 0x1002134
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1006c4a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101203c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebx], esi
call fcn.01006bf7
test eax, eax
je 0x1006c74
xor eax, eax
inc eax
jmp 0x1006ce7
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1002574
push 0x10044bc
lea eax, [ebp - 0x108]
push eax
call fcn.01010594
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006cde
push 0x1001254
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x1006cd5
mov dword [ebx], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1006ce4
mov dword [ebx], 1
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100d038
leave
ret 4
Function at 0x1006d73
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101203c]
or dword [ebp - 0x210], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1002264
push 0x1002474
mov dword [ebp - 0x218], eax
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x1006eed
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006ee1
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push 0x1002278
push esi
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x1006ee1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push eax
push 0x1001dd0
call esi
test eax, eax
jne 0x1006e86
mov dword [ebp - 0x210], 3
jmp 0x1006ee1
lea eax, [ebp - 0x108]
push eax
push 0x1001db8
call esi
test eax, eax
je 0x1006ec8
lea eax, [ebp - 0x108]
push eax
push 0x1001de0
call esi
test eax, eax
jne 0x1006eb6
mov dword [ebp - 0x210], 4
jmp 0x1006ee1
lea eax, [ebp - 0x108]
push eax
push 0x1001df4
call esi
test eax, eax
jne 0x1006ed1
or dword [ebp - 0x210], 0xffffffff
jmp 0x1006ee1
cmp byte [ebp - 0x108], 0
je 0x1006ee1
and dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.0100d038
leave
ret 4
Function at 0x1006f07
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
test byte [ebp + 0x14], 0x20
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 1
mov ebx, 0x80000000
mov edi, 0x104
je 0x1007057
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.010068d5
test eax, eax
je 0x1007057
push esi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push 0x1002250
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100703a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100702e
lea eax, [ebp - 0x108]
push 0x1004950
push eax
call fcn.0100d360
test eax, eax
pop ecx
pop ecx
jne 0x100702e
lea eax, [ebp - 0x108]
push 0x1004928
push eax
call fcn.0100d360
test eax, eax
pop ecx
pop ecx
jne 0x100702e
lea eax, [ebp - 0x108]
push 0x1004944
push eax
call fcn.0100d360
test eax, eax
pop ecx
pop ecx
jne 0x100702e
mov dword [ebp - 0x21c], esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016cb0]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x21c], esi
je 0x1007119
push dword [ebp - 0x214]
push ebx
call fcn.0100b1e1
push dword [ebp - 0x228]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push 0x1002088
push edi
push eax
call esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push 0x1002474
lea eax, [ebp - 0x108]
push edi
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x220]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007119
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100710d
push dword [ebp - 0x210]
push dword [ebp - 0x220]
call fcn.010068ff
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0100d038
leave
ret 0x10
Function at 0x1007130
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 0x10], 0x20
mov eax, dword [0x101203c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x100715c
push esi
call fcn.01006d73
cmp eax, 0xffffffff
jne 0x10071ce
push esi
push 0x1002264
push 0x1002474
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10071ce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100d038
leave
ret 0xc

Function at 0x10071e1
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
call fcn.01006c4a
test eax, eax
je 0x100720d
inc edi
jmp 0x1007310
cmp dword [ebp - 0x210], edi
jbe 0x1007310
cmp dword [ebp - 0x210], 2
ja 0x1007310
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je 0x100730f
cmp eax, esi
ja 0x100730f
push esi
lea eax, [ebp - 0x108]
push eax
push 0x1002574
push 0x100455c
lea eax, [ebp - 0x20c]
push eax
call fcn.01010594
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x100730f
push 0x1001268
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1007308
call eax
lea eax, [ebp - 0x218]
push eax
call fcn.01006c4a
test eax, eax
jne 0x1007305
cmp dword [ebp - 0x210], 2
jne 0x1007308
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002140
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1007308
push 0xc
push 0x100217c
push 1
push edi
push 0x1002174
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10072f7
xor edi, edi
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007308
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
call fcn.0100d038
leave
ret 4
Function at 0x1007bfa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1016dc0], esi
mov dword [ebp - 4], esi
jne 0x1007c70
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [0x1016be0]
mov dword [0x1016dc0], 1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007c70
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10055c4
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007c67
cmp dword [ebp - 4], esi
setne al
mov dword [0x1016dbc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016dbc]
pop esi
leave
ret

Function at 0x1007da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x1016c8c]
dec eax
je 0x1007db0
dec eax
jne 0x1007db7
jmp fcn.01007cab
push 1
call fcn.0100cce1
ret

Function at 0x1007dbd
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x1007e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1007e40
add esi, 3
push ebx
jmp 0x1007e0b
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x1007e02
cmp byte [esi], 0x5c
je 0x1007e10
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1007dee
mov bl, byte [esi]
push 0
push dword [ebp + 8]
mov byte [esi], 0
call edi
test eax, eax
jne 0x1007e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007e36
test bl, bl
mov byte [esi], bl
je 0x1007e3f
inc esi
jmp 0x1007e0b
mov dword [ebp - 4], 0x80004005
mov byte [esi], bl
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1008545
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1008567
jle 0x100858c
cmp eax, 2
jle 0x10085c4
cmp eax, 3
je 0x1008593
cmp eax, 4
jne 0x100858c
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x100858c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100858c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp dword [ebp + 0xc], ebx
je 0x100858c
cmp dword [ebp + 0x10], ebx
je 0x100858c
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x100858c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100858c
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x100858c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x10085eb
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], ebx
je 0x100858c
cmp dword [ebp + 0x14], ebx
je 0x100858c
call fcn.010069e3
test eax, eax
jne 0x100858c
push 0xfffffffffffffffe
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0x14]
call fcn.01007a88
push 1
push edi
call esi
jmp 0x100858c