joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10219c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
sub eax, edi
mov esi, ecx
mov dword [ebp - 4], edi
je 0x1021b30
dec eax
je 0x1021b16
dec eax
je 0x1021aa1
dec eax
dec eax
je 0x1021a62
dec eax
jne 0x1021b71
cmp dword [esi + 0x18], edi
je 0x1021a06
push edi
push 0x1021967
push dword [ebp + 8]
call sub.COMCTL32.dll_RemoveWindowSubclass
cmp dword [esi + 0x20], edi
jbe 0x1021a2a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x20]
push eax
push 0x1164
push dword [0x103ec44]
call sub.ntdll.dll_WinSqmSetDWORD
mov eax, dword [esi + 0x20]
jmp 0x1021a41
push edi
push 0x1164
push dword [0x103ec44]
call sub.ntdll.dll_WinSqmSetDWORD
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
push eax
push 0x1a2c
push dword [0x103ec44]
call sub.ntdll.dll_WinSqmSetDWORD
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
push edi
call dword [eax]
jmp 0x1021b71
cmp dword [esi + 0x1c], edi
je 0x1021a71
call fcn.01020ade
jmp 0x1021b71
cmp dword [esi + 0x24], edi
je 0x1021b71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x20]
cmp eax, 0x3e8
jbe 0x1021b71
push 5
push dword [ebp + 8]
mov dword [esi + 0x24], edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1021b71
cmp dword [esi + 4], edi
jne 0x1021ab3
cmp dword [ebp + 0x10], 2
jne 0x1021ab3
mov dword [ebp + 0x10], 0xc
mov eax, dword [ebp + 0x10]
dec eax
dec eax
je 0x1021afb
sub eax, 8
je 0x1021aed
dec eax
je 0x1021ae1
dec eax
jne 0x1021b71
lea ecx, [esi + 0x2c]
push dword [ecx]
push 4
call fcn.01020b37
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1021af2
mov dword [esi + 0x30], 5
jmp 0x1021b71
call fcn.0102129f
mov dword [ebp - 4], 1
jmp 0x1021b71
push 1
push 0x1163
push dword [0x103ec44]
call sub.ntdll.dll_WinSqmSetDWORD
mov dword [esi + 0x30], 4
jmp 0x1021b71
cmp dword [esi + 4], 1
jne 0x1021b71
push 0x1e
push 1
push 0x46b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1021b71
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi], ebx
cmp dword [esi + 0x1c], edi
je 0x1021b40
call fcn.01020ade
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
push ebx
call dword [eax]
push esi
push edi
push 0x1021967
push ebx
mov dword [esi + 4], edi
call sub.COMCTL32.dll_SetWindowSubclass
push dword [esi + 8]
lea ecx, [esi + 0x2c]
push ebx
mov dword [esi + 0x18], eax
call fcn.01020b74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x28], eax
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x10
Function at 0x10232da
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x10
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push 0x1003880
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x1023370
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jb 0x1023344
cmp eax, dword [ebp + 0x18]
ja 0x1023344
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x102339a
test byte [ecx + 0x1c], 4
je 0x102339a
push dword [ebp + 0xc]
push eax
push 0x1004200
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008b5a
mov eax, dword [ebp + 8]
jmp 0x102339a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1023397
test byte [eax + 0x1c], 1
je 0x1023397
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x1004200
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008b5a
jmp 0x1023397
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1023397
test byte [ecx + 0x1c], 2
je 0x1023397
push eax
push 0x1004200
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
mov eax, dword [ebp + 0x10]
leave
ret 0x14

Function at 0x102357e
Capabilities:
Delete file
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
cmp word [edi], 0
je 0x1023598
push edi
call sub.KERNEL32.dll_DeleteFileW
xor eax, eax
mov word [edi], ax
add esi, 0x20c
mov eax, dword [esi]
test eax, eax
je 0x10235b6
push 0
push eax
call sub.KERNEL32.dll_TerminateProcess
push dword [esi]
call sub.KERNEL32.dll_CloseHandle
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x1023b7e
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x1c], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x1023bd3
mov esi, 0x80070057
mov eax, dword [section..data]
cmp eax, section..data
je 0x1023ca1
test byte [eax + 0x1c], 1
je 0x1023ca1
push 0x1004210
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1023ca1
and dword [esi], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x1023c22
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1023c99
test byte [eax + 0x1c], 1
je 0x1023c99
push esi
push 0x1004210
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1023c99
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
mov edi, dword [ebp + 8]
test eax, eax
je 0x1023c54
cmp dword [ebp - 0x10], edi
je 0x1023c8c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x1023c54
cmp dword [ebp - 0x10], edi
jne 0x1023c3f
cmp dword [ebp - 0x10], edi
je 0x1023c8c
push 0x490
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1023c93
test byte [eax + 0x1c], 1
je 0x1023c93
push edi
push 0x1004210
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1023c93
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x1023ca1
push dword [ebp + 0xc]
call sub.KERNEL32.dll_CloseHandle
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x102485f
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003880
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102496b
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 2
push 0x100434c
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
push dword [ebp - 0x418]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp edi, esi
jne 0x102496a
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1003870
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100878d
add esp, 0x14
test eax, eax
jl 0x102496a
push 0x44
pop edi
push edi
lea eax, [ebp - 0x470]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x470]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x470], edi
call sub.KERNEL32.dll_CreateProcessW
cmp eax, 1
jne 0x102496a
push dword [ebp - 0x42c]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x428]
call sub.KERNEL32.dll_CloseHandle
push 0x1388
call sub.KERNEL32.dll_Sleep
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret
Function at 0x10258e2
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], 0xfeff
cmp ecx, ebx
je 0x1025ac7
cmp edi, ebx
je 0x1025ac7
cmp edx, ebx
je 0x1025ac7
xor ecx, ecx
mov word [ebp - 0x20c], cx
cmp eax, ebx
jne 0x1025953
mov eax, 0x10045ec
push esi
push ebx
push 1
push ebx
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.01016f84
mov esi, eax
cmp esi, ebx
jge 0x102599f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1025a96
test byte [eax + 0x1c], 1
je 0x1025a96
push esi
push 0x1004460
push 0xd
jmp 0x1025a87
push ebx
lea eax, [ebp - 0x214]
push eax
push 2
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x210]
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x10259f3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1025a96
test byte [eax + 0x1c], 1
je 0x1025a96
push esi
push 0x1004460
push 0xe
jmp 0x1025a87
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10259f8
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x214]
push ecx
add eax, eax
push eax
push edi
push dword [ebp - 0x210]
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x1025a4a
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1025a96
test byte [eax + 0x1c], 1
je 0x1025a96
push esi
push 0x1004460
push 0xf
jmp 0x1025a87
push ebx
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push 3
push 5
push eax
push dword [ebp - 0x21c]
call sub.wer.dll_WerpAddFile
mov esi, eax
cmp esi, ebx
jge 0x1025a94
mov eax, dword [section..data]
cmp eax, section..data
je 0x1025a96
test byte [eax + 0x1c], 1
je 0x1025a96
push esi
push 0x1004460
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1025a96
xor esi, esi
cmp dword [ebp - 0x210], ebx
je 0x1025aa9
push dword [ebp - 0x210]
call sub.KERNEL32.dll_CloseHandle
cmp esi, ebx
jge 0x1025ac2
cmp word [ebp - 0x20c], bx
je 0x1025ac2
lea eax, [ebp - 0x20c]
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, esi
pop esi
jmp 0x1025af0
mov eax, dword [section..data]
cmp eax, section..data
je 0x1025aeb
test byte [eax + 0x1c], 1
je 0x1025aeb
push 0x1004460
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 0x10
Function at 0x1027a25
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
xor edi, edi
push edi
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002e88
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x1027a5b
jle 0x1027a95
and eax, 0xffff
or eax, 0x80070000
jmp 0x1027a95
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp esi, edi
je 0x1027a92
jle 0x1027a8e
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1027a94
xor eax, eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x10282d7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jbe 0x1028343
push 0
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push dword [esi + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x102833f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1028314
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102833b
test byte [eax + 0x1c], 1
je 0x102833b
push esi
push 0x1004db0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, esi
jmp 0x1028345
and dword [esi + 0x18], 0
xor eax, eax
pop esi
leave
ret
Function at 0x102b0c2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.01015c7b
lea ecx, [ebp - 0x14]
call fcn.01014810
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1005ff0
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
je 0x102b133
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b129
test byte [eax + 0x1c], 1
je 0x102b129
push 0x1005f1c
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, 0x80004005
jmp 0x102b2b9
push edi
lea edi, [esi + 4]
push ebx
mov ecx, edi
call fcn.01015d45
push eax
xor ebx, ebx
push 0x100181c
inc ebx
push ebx
lea ecx, [ebp - 0x44]
call fcn.01015a87
mov esi, eax
test esi, esi
jge 0x102b17d
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b2b8
test byte [eax + 0x1c], bl
je 0x102b2b8
push esi
push 0x1005f1c
push 0x22
jmp 0x102b242
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x44]
call fcn.01015def
test eax, eax
jl 0x102b259
lea ecx, [ebp - 0x44]
call fcn.01015d09
test eax, eax
je 0x102b259
push 0x1005fe8
lea ecx, [ebp - 0x14]
call fcn.01014c4a
mov esi, eax
test esi, esi
jge 0x102b1d8
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b2b8
test byte [eax + 0x1c], bl
je 0x102b2b8
push esi
push 0x1005f1c
push 0x23
jmp 0x102b242
push 0x1005fe4
lea ecx, [ebp - 0x14]
call fcn.01015747
mov esi, eax
test esi, esi
jge 0x102b20e
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b2b8
test byte [eax + 0x1c], bl
je 0x102b2b8
push esi
push 0x1005f1c
push 0x24
jmp 0x102b242
lea ecx, [ebp - 0x44]
call fcn.01015d09
push eax
lea ecx, [ebp - 0x14]
call fcn.01014dd1
mov esi, eax
test esi, esi
jge 0x102b24f
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b2b8
test byte [eax + 0x1c], bl
je 0x102b2b8
push esi
push 0x1005f1c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x102b2b8
lea ecx, [ebp - 0x14]
call fcn.01015d45
jmp 0x102b25e
mov eax, 0x1005fe8
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
test si, si
jne 0x102b263
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push ebx
xor esi, esi
push esi
mov ecx, edi
call fcn.01015d45
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102b2b8
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b2b3
test byte [eax + 0x1c], bl
je 0x102b2b3
push 0x1005f1c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, 0x80004005
pop edi
cmp dword [ebp - 4], 0
je 0x102b2cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.01014822
lea ecx, [ebp - 0x44]
call fcn.01015cbc
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102b5bf
Capabilities:
Delete registry key

Disassembly:
push 0x10060b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x102b602
cmp eax, 2
je 0x102b602
mov eax, dword [section..data]
cmp eax, section..data
je 0x102b5fc
test byte [eax + 0x1c], 1
je 0x102b5fc
push 0x1005f1c
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80004005
ret
xor eax, eax
ret

Function at 0x102b6ea
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x102b859
cmp dword [ebp + 0x10], esi
je 0x102b859
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x102b72c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102b71c
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102b732
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
cmp ebx, esi
je 0x102b859
cmp eax, esi
je 0x102b859
lea ebx, [ebx + ebx + 2]
cmp ebx, 0xffffffff
jb 0x102b766
push 0x100617c
jmp 0x102b85e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
jne 0x102b7b8
push 0x1005844
call sub.ntdll.dll_DbgPrint
mov eax, dword [esi]
pop ecx
mov edi, 0x8007000e
test eax, eax
je 0x102b7b1
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi], 0
mov eax, edi
jmp 0x102b869
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [esi]
mov eax, edi
add esp, 0xc
cmp word [eax], 0
je 0x102b84d
jmp 0x102b7df
cmp dword [ebp - 8], 0
je 0x102b7dd
mov dword [ebp - 4], 1
inc edi
inc edi
cmp word [edi], 0x20
je 0x102b7d0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x102b7fc
cmp word [edi], ax
je 0x102b7fc
push 0x20
pop ecx
mov word [esi], cx
inc esi
inc esi
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push edi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x102b831
lea eax, [edi + ebx*2]
movzx ecx, word [eax]
test cx, cx
je 0x102b821
cmp cx, 0x20
jne 0x102b831
cmp edi, dword [ebp + 8]
je 0x102b82f
jbe 0x102b831
cmp word [edi - 2], 0
jne 0x102b831
mov edi, eax
movzx eax, word [edi]
test ax, ax
je 0x102b84d
mov word [esi], ax
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
mov dword [ebp - 8], 1
jne 0x102b7df
xor eax, eax
mov word [esi], ax
xor edi, edi
jmp 0x102b7b1
push 0x1005848
call sub.ntdll.dll_DbgPrint
pop ecx
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x102baf5
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call fcn.01015c7b
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], ebx
call fcn.01014810
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x1005ff0
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x102bb77
cmp esi, 2
je 0x102bcd5
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bb6a
test byte [eax + 0x1c], 1
je 0x102bb6a
push 0x1005f1c
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push esi
call fcn.0100968c
mov esi, eax
jmp 0x102bcd7
add edi, 4
push ebx
mov ecx, edi
call fcn.01015d45
push eax
xor ebx, ebx
push 0x100181c
inc ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.01015a87
mov esi, eax
test esi, esi
jge 0x102bbcb
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bcd7
test byte [eax + 0x1c], bl
je 0x102bcd7
push esi
push 0x1005f1c
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x102bcd7
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
call fcn.01015def
mov esi, eax
test esi, esi
jge 0x102bc01
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bcd7
test byte [eax + 0x1c], bl
je 0x102bcd7
push esi
push 0x1005f1c
push 0x3a
jmp 0x102bbbb
lea ecx, [ebp - 0x48]
call fcn.01015d09
test eax, eax
je 0x102bcd5
lea eax, [ebp - 8]
push eax
push 0x1005fe8
push 0
lea ecx, [ebp - 0x48]
call fcn.01015d09
mov ecx, dword [ebp - 0xc]
push eax
call fcn.0102b6ea
mov esi, eax
test esi, esi
jge 0x102bc59
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bcd7
test byte [eax + 0x1c], bl
je 0x102bcd7
push esi
push 0x1005f1c
push 0x3b
jmp 0x102bbbb
mov esi, dword [ebp - 8]
test esi, esi
je 0x102bcc4
cmp word [esi], 0
je 0x102bcc4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102bc6b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
push 0
mov ecx, edi
call fcn.01015d45
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102bcd5
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x102bcbd
test byte [ecx + 0x1c], bl
je 0x102bcbd
push eax
push 0x1005f1c
push 0x3c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
mov esi, 0x80004005
jmp 0x102bcdb
mov ecx, edi
call fcn.01015d45
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
xor esi, esi
test esi, esi
jge 0x102bcf6
cmp dword [ebp - 4], 0
je 0x102bd09
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.01015d45
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
je 0x102bd09
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x102bd1b
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0102b875
lea ecx, [ebp - 0x18]
call fcn.01014822
lea ecx, [ebp - 0x48]
call fcn.01015cbc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102bdcd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
je 0x102bfbb
cmp dword [ebp + 8], edi
je 0x102bfbb
push esi
mov esi, 0x208
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x102be2f
mov eax, dword [section..data]
cmp eax, section..data
je 0x102be23
test byte [eax + 0x1c], 1
je 0x102be23
push 0x1005f1c
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov dword [ebp + 0xc], 0x8007000e
jmp 0x102bfb5
push eax
push edi
push edi
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov dword [ebp + 0xc], eax
jge 0x102be68
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bfac
test byte [eax + 0x1c], 1
je 0x102bfac
push 0x1005f1c
push 0x41
jmp 0x102bf9b
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx], eax
cmp eax, edi
jne 0x102be9b
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bf5f
test byte [eax + 0x1c], 1
je 0x102bf5f
push 0x1005f1c
push 0x42
jmp 0x102bf54
cmp dword [ebp + 0x10], edi
je 0x102bed1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edi, 0x10061d4
push edi
push dword [ebp - 4]
mov esi, 0x104
push 0x10061ac
push esi
push dword [ebx]
call fcn.0100878d
add esp, 0x20
jmp 0x102befd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edi, 0x10061d4
push edi
push dword [ebp - 4]
mov esi, 0x104
push 0x100618c
push esi
push dword [ebx]
call fcn.0100878d
add esp, 0x1c
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x102bf27
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bfac
test byte [eax + 0x1c], 1
je 0x102bfac
push 0x1005f1c
push 0x43
jmp 0x102bf9b
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x102bf68
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bf5f
test byte [eax + 0x1c], 1
je 0x102bf5f
push 0x1005f1c
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov dword [ebp + 0xc], 0x8007000e
jmp 0x102bfac
push edi
push dword [ebp - 4]
push 0x1003198
push esi
push eax
call fcn.0100878d
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x102bfa8
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bfac
test byte [eax + 0x1c], 1
je 0x102bfac
push 0x1005f1c
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x102bfac
and dword [ebp + 0xc], 0
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0xc]
pop esi
jmp 0x102bfe4
mov eax, dword [section..data]
cmp eax, section..data
je 0x102bfdf
test byte [eax + 0x1c], 1
je 0x102bfdf
push 0x1005f1c
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 0xc