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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], 0x2000
mov edi, dword [esp + 0x58]
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x409258
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040fc80
test eax, eax
js 0x409258
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040fd70
cdq
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, edi
mov dword [esp + 0x1c], edx
xor edx, edx
cmp ecx, edi
mov ecx, dword [esp + 0x1c]
sbb ecx, edx
jb 0x409258
add eax, 0xffffffff
mov ebp, ebx
adc edx, 0xffffffff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
cmp eax, 0x2000
mov ecx, edx
mov ebx, 0
mov dword [esp + 0x18], eax
sbb ecx, ebx
mov dword [esp + 0x1c], edx
jae 0x40919e
mov dword [esp + 0x18], 0x2000
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, eax
add ecx, 0xffffe000
adc ebx, 0xffffffff
sub esi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
cmp edi, esi
ja 0x409252
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040fc80
test eax, eax
js 0x409252
mov eax, dword [esp + 0x50]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fread
cmp eax, esi
jne 0x409252
sub eax, edi
mov ebx, ebp
lea esi, [eax + 1]
jmp 0x409230
mov eax, dword [esp + 0x54]
lea ebp, [esi - 1]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
lea eax, [ebx + ebp]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x409270
mov esi, ebp
test esi, esi
jne 0x409210
mov eax, dword [esp + 0x28]
mov ebp, ebx
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add eax, ebx
adc edx, esi
or esi, ebx
jne 0x409176
mov ebx, ebp
lea esi, [esi]
xor esi, esi
xor edi, edi
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x3c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, 0xffffdfff
adc edx, 0xffffffff
xor edi, edi
add esi, eax
adc edi, edx
jmp 0x40925c

Function at 0x409ad0
Capabilities:
Create directory

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4221a0]
test eax, eax
je 0x409b16
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
neg eax
add esp, 0x2c
ret
mov dword [esp], str.Security_descriptor_is_not_initialized__n
call fcn.00403090
mov eax, 0xffffffff
jmp 0x409b12
Function at 0x40e710
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00417950
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00417950
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40e770
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4231e8]
test esi, esi
jle 0x40e890
mov eax, dword [0x4231ec]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40e7a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40e827
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40e790
mov dword [esp], ebx
call fcn.0040f100
mov edi, eax
test eax, eax
je 0x40e8b7
mov eax, dword [0x4231ec]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040f210
mov edx, dword [0x4231ec]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40e897
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40e820
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40e830
add dword [0x4231e8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4231ec]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40e820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040e710
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40e7ae
mov eax, dword [0x4231ec]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040e710
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040e710
lea esi, [esi]
nop
Function at 0x40ed70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x423204
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4231fc]
sub esp, 4
test ebx, ebx
je 0x40edc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40edbe
test esi, esi
je 0x40edbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40eda0
mov dword [esp], 0x423204
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10008ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10008b1b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10008b02
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10008b13
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10008b1d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10008af8
xor eax, eax
pop edi
pop esi
ret

Function at 0x10008d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ebx + 0x56500c75]
push dword [ebp + 8]
call fcn.10008a65
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10008d8e
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10008aa0
cmpsd dword [esi], dword es:[edi]
test bl, al
mov edx, 0x50c0458d
call fcn.10008ab0
push eax
push esi
push dword [ebp + 8]
call fcn.10008a65
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10008aa0
iretd

Function at 0x10009950
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.10008aa0
ja 0x10009997
insb byte es:[edi], dx
or eax, dword [eax - 0x22f5b]
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
ror byte [ebp - 0x12a43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
ror byte [ebp - 0x65243], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10008a7e
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
invalid
movsd dword es:[edi], dword [esi]
Function at 0x10009980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.10008aa0
ja 0x10009997
insb byte es:[edi], dx
or eax, dword [eax - 0x22f5b]
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
ror byte [ebp - 0x12a43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
ror byte [ebp - 0x65243], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10008a7e
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
invalid
movsd dword es:[edi], dword [esi]
Function at 0x1000aa9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.10008a11
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x1000aa18
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.10008aa0
scasb al, byte es:[edi]
pop ebx
add al, 0x94
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1000aa83
lea eax, [ebp - 0x714]
push eax
call fcn.10008ab0
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.10008a65
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x1000aa83
jmp 0x1000a442
cmp dword [ebp - 0x37c], 0
je 0x1000aa91
jmp 0x1000ab46
push 0
push 0
push 2
push 0
push 2
push 0x40000000
add byte [eax], al
inc eax
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x1000aaea
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x1000aaef
jmp 0x1000a442
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1000ab36
lea eax, [ebp - 0x714]
push eax
call fcn.10008ab0
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.10008a65
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x1000ab41
jmp 0x1000ab46
jmp 0x1000a442
cmp dword [ebp - 0x37c], 0
jne 0x1000abf0
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008c7c
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x1000abdc
lea eax, [ebp - 0x714]
push eax
call fcn.10008ab0
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.10008b45
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014336
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
mov eax, 0x1003da6d
call fcn.1003b954
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor esi, esi
mov ecx, 0x3e8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x48], 4
lea ebx, [ecx*4 + 8]
cmp ebx, 0x400000
jg 0x100143fd
lea eax, [ebp - 0x41]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10014467
mov edi, dword [ebp - 0x1c]
push ebx
push esi
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32QueryWorkingSet]
test eax, eax
jne 0x100143bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
add ecx, 3
cmp eax, 0x18
jne 0x10014402
sub dword [ebp - 0x48], 1
jns 0x10014364
jmp 0x10014402
mov ebx, dword [edi]
test ebx, ebx
je 0x100143de
add edi, 4
mov ecx, ebx
test dword [edi], 0xe0
lea eax, [esi + 1]
lea edi, [edi + 4]
cmovbe eax, esi
mov esi, eax
sub ecx, 1
jne 0x100143c8
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
sub ebx, esi
imul ebx, dword [ebp - 0x3c]
shr ebx, 0xa
jmp 0x10014404
mov esi, 0x3fffff
mov ebx, esi
lea ecx, [ebp - 0x1c]
call 0x1001441e
mov eax, ebx
call fcn.1003b912
ret

Function at 0x10017c60
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017c70

Function at 0x10018190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1001819e
pop ebp
ret 0xc
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.10017ef0
Function at 0x1001a7c5
Capabilities:
Persist via run registry key

Disassembly:
push 0x6c
mov eax, 0x1003ded5
call fcn.1003b954
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov byte [edi], bl
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call fcn.1001c816
mov esi, eax
test esi, esi
js 0x1001a956
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x78], ebx
lea ecx, [ebp - 0x78]
push str.OneDrive
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
mov word [ebp - 0x78], ax
call fcn.100037f6
xor eax, eax
mov dword [ebp - 0x60], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x60], ax
call fcn.100037f6
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push SysReAllocString
call fcn.1001dacc
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x1001a8a9
mov ecx, dword [ebp - 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x1001a8a0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100036a7
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.10018283
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 7
cmp eax, 8
jb 0x1001a8f4
mov ecx, dword [ebp - 0x78]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x1001a8eb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100036a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.10018283
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1001a91b
mov byte [edi], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1001a956
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x1001a94d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100036a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.10018283
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x1001a991
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x1001a988
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100036a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.10018283
pop ecx
pop ecx
mov eax, esi
call fcn.1003b912
ret 4
Function at 0x1001b193
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x1001b1b7
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1001b1f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x1001b1d9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001b1f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10018250
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x1001b191

Function at 0x1001b837
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x1003e190
call fcn.1003b954
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ecx
call fcn.10022d9e
xor ecx, ecx
mov eax, 0x200
cmp dword [ebp + 0x10], 1
mov edx, 0x100
cmove ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], 2
cmove eax, edx
and dword [ebp - 0x234], 0
or ecx, eax
or ecx, 0x20019
cmp dword [esi + 0x14], 8
jb 0x1001b88d
mov esi, dword [esi]
lea eax, [ebp - 0x234]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x1001b9d3
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x1001b9a6
and dword [ebp - 0x230], eax
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x21c], 7
call fcn.100037f6
mov eax, dword [ebp - 0x23c]
and dword [ebp - 4], edi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1001b93e
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.10009aa1
jmp 0x1001b94d
lea edx, [ebp - 0x230]
push edx
push ecx
mov ecx, eax
call fcn.10009ad0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1001b9ae
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x1001b99b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.100036a7
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.10018283
pop ecx
pop ecx
jmp 0x1001b9ae
cmp edi, 0x103
jne 0x1001b9b9
inc ebx
test edi, edi
je 0x1001b8b7
jmp 0x1001b9c7
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.1003b912
ret 0x10
Function at 0x1001ceff
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x1001cf60
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.100037f6
jmp 0x1001cf74
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10018250
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x1001cefd

Function at 0x1001cfb1
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x1001cfe7
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x1001d08f
cmp dword [edi + 0x14], 8
jb 0x1001d024
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x1001d083
cmp dword [ebp - 0x828], 1
je 0x1001d073
cmp dword [ebp - 0x828], 2
je 0x1001d073
mov esi, 0x8007065d
jmp 0x1001d083
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.100037f6
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018250
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x1001cfaf