joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1047455
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x106fb68
call fcn.01047510
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1075584
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x104720c
cmp eax, esi
jne 0x10471ff
xor esi, esi
inc esi
mov ebx, esi
jmp 0x104720f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10471e6
xor esi, esi
inc esi
mov eax, dword [0x1075580]
cmp eax, esi
jne 0x1047222
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1047251
mov eax, dword [0x1075580]
test eax, eax
jne 0x104724b
mov dword [0x1075580], esi
push 0x100171c
push 0x1001710
call fcn.0104714b
pop ecx
pop ecx
test eax, eax
je 0x1047251
jmp 0x1047379
mov dword [0x1074328], esi
mov eax, dword [0x1075580]
cmp eax, esi
jne 0x1047275
push 0x100170c
push 0x1001680
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1075580], 2
test ebx, ebx
jne 0x1047281
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1075588], 0
je 0x10472a5
push 0x1075588
call fcn.01047689
pop ecx
test eax, eax
je 0x10472a5
push 0
push 2
push 0
call dword [0x1075588]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1047301
test al, al
je 0x10472bf
cmp dword [ebp - 0x1c], 0
jne 0x1047301
mov al, byte [esi]
test al, al
je 0x10472cf
cmp al, 0x20
ja 0x10472cf
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10472bf
test byte [ebp - 0x3c], 1
je 0x10472db
movzx eax, word [ebp - 0x38]
jmp 0x10472de
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1074324], eax
cmp dword [0x1074318], 0
jne 0x1047355
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1047310
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1047323
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10472ac
cmp dword [0x1074328], 0
jne 0x1047364
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1074324]
jmp 0x1047385
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01047555
ret
call fcn.01047874
jmp 0x10471ac

Function at 0x1047d0c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x118]
push eax
xor bl, bl
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x1047d58
cmp dword [ebp - 0x108], 2
jne 0x1047d56
cmp dword [ebp - 0x114], 6
jb 0x1047d56
mov bl, al
jmp 0x1047d58
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret
Function at 0x1047d6c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x1047da3
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1047d7d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc
Function at 0x10480bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ecx
cmp dword [eax], ecx
je 0x10481ef
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0x20019
push ebx
push ecx
mov edi, 0x1006190
push edi
push 0x80000002
mov dword [ebp - 0x210], ecx
call esi
test eax, eax
je 0x1048134
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push edi
push 0x80000001
call esi
test eax, eax
je 0x1048134
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
mov edi, dword [ebp - 0x214]
je 0x10481db
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0
push dword [edi]
push dword [ebp - 0x210]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10481c1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100615c
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10481b9
cmp dword [ebp - 0x214], ebx
jne 0x10481b9
mov dword [ebp - 0x218], ebx
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x210]
call esi
cmp dword [ebp - 0x218], 0
je 0x10481db
push dword [edi]
push 0x1006134
jmp 0x10481e2
push dword [edi]
push 0x10060f0
push 4
call fcn.01055c69
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.01047464
leave
ret

Function at 0x104821b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor esi, esi
push esi
push esi
push esi
mov edi, ecx
push 6
mov dword [ebp - 0x14], edi
call fcn.01058952
test eax, eax
je 0x10482b2
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push 0x1006248
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10482ad
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1006210
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10482a4
cmp dword [ebp - 8], edi
jne 0x10482a4
cmp dword [ebp - 0xc], esi
jne 0x10482a4
push 0x10061ec
push edi
call fcn.01055c2f
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x98]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x10482b8
mov eax, dword [edi + 0x98]
pop edi
pop esi
leave
ret
Function at 0x1048741
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10487d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
push 0x1005dc8
lea eax, [ebp - 0x414]
push edx
push eax
push 0x10063c0
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01035948
add esp, 0x18
test eax, eax
jl 0x10487d2
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10487d2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0105847c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.01047464
leave
ret
Function at 0x1048932
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
xor ebx, ebx
mov eax, 0x80004005
mov dword [ebp - 0x214], eax
cmp ecx, ebx
je 0x1048b14
push ecx
push 0x1006530
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x1048b0e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
mov dword [ebp - 0x210], ebx
call edi
test eax, eax
je 0x10489dd
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call edi
test eax, eax
je 0x10489dd
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x210], ebx
je 0x1048b0d
push dword [esi + 0xc]
push 0x1006510
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x64]
push 0x10064f8
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x68]
push 0x10064d8
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x5c]
push 0x10064bc
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x54]
push 0x10064a0
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x50]
push 0x1006480
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x58]
push 0x1006464
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x6c]
mov edi, 0x1006444
push edi
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x70]
push edi
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x74]
push 0x1006424
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x78]
mov edi, 0x1006404
push edi
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x7c]
push edi
push dword [ebp - 0x210]
call fcn.01047d6c
push dword [esi + 0x80]
push 0x10063e4
push dword [ebp - 0x210]
call fcn.01047d6c
lea eax, [esi + 0x4c]
cmp dword [eax], ebx
je 0x1048afb
push 4
push eax
push 4
push ebx
push 0x10063d8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret
Function at 0x104a07e
Capabilities:
Delete registry value
Set registry value

Disassembly:
cmp dword [ecx + 0x40], 0
je 0x104a094
call fcn.01048f83
test eax, eax
je 0x104a094
mov ecx, eax
jmp fcn.01048b88
ret

Function at 0x104a09a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
push edi
push 0x1006acc
mov esi, ecx
push 3
mov dword [ebp - 0x220], esi
call fcn.01055c2f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x104a0db
push eax
mov ecx, esi
call fcn.01049cb4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
mov ebx, 0x1001b38
push ebx
push 0x80000001
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104a221
and dword [ebp - 0x218], 0
push 4
pop eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006a94
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x104a1b2
cmp dword [ebp - 0x218], 1
jne 0x104a1b2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006a60
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call esi
test eax, eax
jne 0x104a1b2
cmp dword [ebp - 0x214], 1
jne 0x104a1b2
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.01049daf
lea eax, [ebp - 0x20c]
push eax
push 0x1006a40
push 3
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1001f20
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call esi
test eax, eax
jne 0x104a215
cmp dword [ebp - 0x214], 1
jne 0x104a215
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.01049e99
lea eax, [ebp - 0x20c]
push eax
push 0x1006a20
push 3
call fcn.01055c69
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
pop ebx
test eax, eax
jne 0x104a2ed
push 4
pop edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x10069f4
push dword [ebp - 0x210]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x208
call esi
test eax, eax
jne 0x104a2e1
cmp dword [ebp - 0x218], 1
jne 0x104a2e1
mov ecx, 0x1001e44
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104a2b0
test dx, dx
je 0x104a2ac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104a2b0
add eax, edi
add ecx, edi
test dx, dx
jne 0x104a28c
xor eax, eax
jmp 0x104a2b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x104a2e1
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.01049f94
lea eax, [ebp - 0x20c]
push eax
push 0x10069d0
push 3
call fcn.01055c69
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x104ad24
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2d8]
push eax
push 3
xor esi, esi
push esi
push 0x1001b38
mov ebx, ecx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104ae93
push dword [ebx + 0x10]
push 0x1001f20
push dword [ebp - 0x2d8]
call fcn.01047d6c
cmp dword [ebx + 0x18], esi
jne 0x104ade2
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x104ae87
mov ecx, 0x1001e44
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104adbd
cmp dx, si
je 0x104adb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104adbd
add eax, 4
add ecx, 4
cmp dx, si
jne 0x104ad97
xor eax, eax
jmp 0x104adc2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x104ae87
push dword [ebx + 0x10]
push 0x10069f4
push dword [ebp - 0x2d8]
call fcn.01047d6c
jmp 0x104ae87
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2e4]
push eax
push esi
push 0x10069f4
push dword [ebp - 0x2d8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e8], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104ae81
cmp dword [ebp - 0x2e4], ebx
jne 0x104ae81
lea eax, [ebp - 0xcc]
push eax
push 0x1006530
lea eax, [ebp - 0x2d4]
push 0x208
push eax
call fcn.01035948
add esp, 0x10
test eax, eax
jl 0x104ae81
push esi
lea eax, [ebp - 0x2e0]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x2d4]
push eax
push edi
mov dword [ebp - 0x2e0], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104ae81
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2dc]
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x2d8]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1002038
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104aed0
push dword [ebx + 0x20]
push 0x1002018
push dword [ebp - 0x2d8]
call fcn.01047d6c
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret
Function at 0x104c802
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x68], ebx
jne 0x104c8bc
cmp dword [esi + 0x6c], ebx
jne 0x104c8bc
mov eax, dword [esi + 0x2c]
cmp eax, 1
je 0x104c863
jle 0x104c8bc
cmp eax, 4
jle 0x104c83c
cmp eax, 6
jne 0x104c8bc
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x104c855
push ebx
push dword [esi + 0x14]
push eax
call fcn.0106335d
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x104c8bc
push 0x10079a0
push 2
call fcn.01055c2f
jmp 0x104c8bc
push dword [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.010561ca
test eax, eax
je 0x104c8bc
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x104c8bb
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x104c8b4
mov edx, dword [ebp - 4]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [esi + 0x54], ebx
jne 0x104c8ea
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x104c8ea
push eax
call fcn.010561ca
test eax, eax
jne 0x104c8ea
push dword [esi + 0x1c]
call fcn.010561ca
test eax, eax
jne 0x104c8ea
push 0x1007958
push 4
call fcn.01055c2f
cmp dword [ebp + 8], ebx
je 0x104c8f7
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
jmp 0x104c903
mov eax, dword [esi + 0x78]
add eax, dword [esi + 0x68]
mov edx, dword [esi + 0x7c]
adc edx, dword [esi + 0x6c]
pop esi
pop ebx
leave
ret 4
Function at 0x104ccba
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x324], esi
cmp ecx, esi
je 0x104ce07
cmp eax, esi
je 0x104ce07
mov dword [ebp - 0x328], 0x80
mov dword [ebp - 0x318], esi
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x318]
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x104ce06
inc dword [ebp - 0x318]
lea eax, [ebp - 0x31c]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x314]
mov dword [ebp - 0x328], 0x80
mov dword [ebp - 0x31c], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x104ce06
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x320]
push eax
push esi
push 0x10077c4
push dword [ebp - 0x31c]
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x330], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104cddf
cmp dword [ebp - 0x320], 1
jne 0x104cddf
push dword [ebp - 0x32c]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x104cddf
inc ebx
mov dword [ebp - 0x324], ebx
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x104cd0b
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x314]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x324]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8
Function at 0x104d261
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x418], ebx
cmp edi, ebx
je 0x104d390
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1007be0
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d2bd
push 0x1007bbc
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d2bd
mov dword [ebp - 0x418], 1
jmp 0x104d38f
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104d38f
lea eax, [ebp - 0x414]
push eax
push 0x1007b9c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x104d38f
cmp dword [ebp + 0xc], 0xd2af9
jne 0x104d376
lea eax, [ebp - 0x41c]
push eax
push 2
push ebx
push 0x1002568
push 0x80000002
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d38f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x104d332
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push ebx
push 0x1007b74
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104d38f
push 0xffff
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.01059819
mov dword [ebp - 0x418], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8
Function at 0x104de66
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], edi
je 0x104df76
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104de98
sub eax, edx
sar eax, 1
lea edi, [eax + 0x15]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x104dedc
push 0x1007d1c
push 2
call fcn.01055c2f
mov eax, 0x8007000e
jmp 0x104dfd6
mov eax, dword [0x1072c6c]
cmp eax, 0xff
jne 0x104def2
call fcn.01056434
mov dword [0x1072c6c], eax
test eax, eax
jbe 0x104df68
push eax
push dword [ebp + 0xc]
push 0x1007d08
push edi
push ebx
call fcn.0103590d
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104df2c
inc eax
cmp dword [ebp - 0xc], eax
je 0x104df61
push dword [ebp + 0xc]
push 0x1007cfc
push edi
push ebx
call fcn.0103590d
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104df9f
inc eax
cmp dword [ebp - 0xc], eax
jne 0x104df9f
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor edi, edi
pop ecx
cmp dword [ebp - 0x10], edi
jne 0x104dfaf
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104dfa8
cmp dword [ebp - 0xc], 1
jne 0x104dfa8
mov dword [ebp - 4], edi
jmp 0x104dfb4
mov dword [ebp - 4], 0x80004005
jmp 0x104df68
mov dword [ebp - 4], 0x80004005
cmp dword [ebp - 4], edi
jl 0x104dfd3
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x104dfc0
mov eax, 0x1007ad0
push eax
push dword [ebp + 0x10]
push 0x1007d34
push 4
call fcn.01055c69
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14