joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
mov edi, dword [ebp + 0x10]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, edi
and edx, 0xffffff01
mov eax, 0x2b
cmp edx, 1
jne 0x500b79
dec edi
je 0x500b79
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x90]
movdqu xmmword [ebx + 0x70], xmm0
movdqu xmmword [ebx + 0x60], xmm0
movdqu xmmword [ebx + 0x50], xmm0
movdqu xmmword [ebx + 0x40], xmm0
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebp - 0x98], edi
shr edi, 1
jmp 0x500bb3
lea ecx, [ebp - 0x90]
xor eax, eax
mov edi, dword [ebp - 0x98]
movzx edx, byte [ecx]
mov esi, edx
shr esi, 4
mov bl, byte [esi + str.0123456789abcdef]
mov esi, dword [ebp + 0xc]
mov byte [esi + eax], bl
and edx, 0xf
mov dl, byte [edx + str.0123456789abcdef]
mov byte [esi + eax + 1], dl
inc ecx
add eax, 2
cmp edi, eax
jne 0x500b47
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
mov esi, eax
call fcn.00650d60
mov eax, esi
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x94]
mov eax, esi
mov byte [ebx], cl
inc ebx
mov ecx, dword [ebp - 0x94]
shr ecx, 8
mov dword [ebp - 0x94], ecx
dec eax
jne 0x500b9a
sub edi, esi
je 0x500b39
mov dword [ebp - 0x94], 0xffffffff
cmp edi, 4
mov esi, 4
cmovb esi, edi
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 8]
call fcn.0051b4f0
add esp, 0xc
test eax, eax
je 0x500b92
cmp eax, 4
jne 0x500b79
xor ecx, ecx
mov dword [ebp - 0x94], ecx
push 2
push 4
lea eax, [ebp - 0x94]
push eax
push ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x500b92
mov eax, 2
jmp 0x500b79

Function at 0x500c10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [esp + 0x28], eax
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x10]
movdqa xmmword [eax], xmm0
push eax
call fcn.0050a160
add esp, 4
push edi
call fcn.004e6c90
add esp, 4
mov edi, eax
push esi
call fcn.004e6c90
add esp, 4
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x500c68
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x500cb6
mov eax, esp
push eax
call fcn.0050a160
sub esp, 0x1c
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [esp + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0x20]
movdqu xmmword [esp], xmm0
call fcn.0050a240
add esp, 0x20
cmp eax, 0x3e9
sbb edx, 0
jb 0x500c60
test edi, edi
je 0x500cb1
push edi
call fcn.005464a0
add esp, 4
xor edi, edi
inc edi
jmp 0x500cc5
test edi, edi
je 0x500cc3
push edi
call fcn.005464a0
add esp, 4
xor edi, edi
test esi, esi
je 0x500cd2
push esi
call fcn.005464a0
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00650d60
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5053a0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
dec eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x7458d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x50546d
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push esi
push esi
push 0x800c
push dword [eax - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x505474
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0051ed40
add esp, 4
push esi
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea edi, [ebp - 0x10]
mov dword [edi], esi
push esi
push edi
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [edi], 0x20
jne 0x50543a
push 0
push edi
push dword [ebp + 8]
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x505448
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x505458
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov esi, 0x1b
jmp 0x50545a
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, 2
jmp 0x50545a
Function at 0x509e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x194
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 8], eax
test byte [ebp + 8], 2
jne 0x509ef6
call fcn.004e71d0
mov esi, eax
test eax, eax
jne 0x509f24
push 0x7489e4
call fcn.00509f50
add esp, 4
mov dword [0x7b1684], eax
test eax, eax
je 0x509ec4
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x509ec4
mov dword [0x7b1680], eax
sub esp, 0x14
movaps xmm0, xmmword [0x7417c0]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
mov byte [0x7b1688], al
push 0x7b1690
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor esi, esi
jmp 0x509f24
lea esi, [ebp - 0x198]
push 0x190
push 0xff
push esi
call fcn.006547d0
add esp, 0xc
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x509f39
mov esi, 2
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x194
pop esi
pop ebp
ret
cmp word [ebp - 0x198], 0x202
je 0x509e8a
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x509f1f

Function at 0x509f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x509fa9
mov edi, eax
mov ebx, dword [ebp + 8]
push 0x748a20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x748a30
push ebx
call fcn.0066f4e7
add esp, 8
test eax, eax
je 0x509fb5
test esi, esi
je 0x509fa0
mov ecx, esi
call dword [0x7a29f4]
push 8
push 0
push ebx
call esi
jmp 0x509fad
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x509fad
xor ebx, ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x509fd8
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x509fd8
mov ecx, esi
call dword [0x7a29f4]
push 0x800
jmp 0x509f99
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x509fab
mov edi, eax
push dword [ebp + 8]
call fcn.0066e7c4
add esp, 4
mov ecx, dword [fcn.00546590]
mov dword [ebp - 0x10], edi
add eax, edi
lea ebx, [eax*2 + 2]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov edi, eax
xor ebx, ebx
test eax, eax
je 0x50a06e
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x50a06e
push edi
call fcn.0066e7c4
add esp, 4
lea eax, [edi + eax*2]
push 0x7373a4
push eax
call fcn.0066f372
add esp, 8
push edi
call fcn.0066e7c4
add esp, 4
lea eax, [edi + eax*2]
push dword [ebp + 8]
push eax
call fcn.0066f372
add esp, 8
test esi, esi
je 0x50a085
mov ecx, esi
call dword [0x7a29f4]
push 8
push 0
push edi
call esi
mov ebx, eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
jmp 0x509fab
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x50a06c
Function at 0x514140
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x16
cmp edi, 4
jb 0x5141ea
mov esi, edx
mov dword [ebp - 0x58], ecx
inc esi
add edi, 0xfffffffe
push str.0123456789abcdefABCDEF:.
push esi
call fcn.0066ec00
add esp, 8
cmp edi, eax
jne 0x5141fe
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x20]
movdqu xmmword [eax], xmm0
movdqu xmmword [ebp - 0x32], xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
mov byte [esi + edi], 0
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5141ea
lea ebx, [ebp - 0x50]
push 0x2e
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x5141e4
push ebx
call fcn.0066e590
add esp, 4
cmp eax, edi
jae 0x5141e4
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0066e270
add esp, 8
mov byte [esi + ebx + 1], 0
mov edi, ebx
mov byte [esi + edi], 0x5d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, ebx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + eax], 0x25
jne 0x5141ea
mov dword [ebp - 0x54], eax
mov edi, eax
add edi, esi
lea eax, [edi + 1]
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x50], xmm0
mov cl, byte [edi + 1]
cmp cl, 0x32
jne 0x514239
mov cl, 0x32
cmp byte [edi + 2], 0x35
jne 0x51423d
movzx edx, byte [edi + 3]
test edx, edx
je 0x51423d
cmp edx, 0x5d
je 0x51423d
lea eax, [edi + 3]
mov ecx, edx
test cl, cl
je 0x5141ea
xor edx, edx
cmp cl, 0x5d
je 0x51425d
cmp edx, 0xe
ja 0x51425d
mov byte [ebp + edx - 0x50], cl
mov cl, byte [eax + edx + 1]
inc edx
test cl, cl
jne 0x51423f
mov ebx, 0x16
jmp 0x5141ea
mov ebx, 0x16
test edx, edx
je 0x5141ea
cmp cl, 0x5d
jne 0x5141ea
mov byte [ebp + edx - 0x50], 0
mov ecx, dword [fcn.00666700]
call dword [0x7a29f4]
lea eax, [ebp - 0x50]
push eax
call ecx
add esp, 4
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x5142a0
mov word [edi], 0x5d
mov edi, dword [ebp - 0x54]
jmp 0x51417f
mov ebx, 7
jmp 0x5141ea
Function at 0x51ed70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x34]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call fcn.005e83b0
mov esi, eax
mov ebx, str.location
push ebx
call fcn.0066e590
add esp, 4
mov ecx, esi
push eax
push ebx
push edi
call fcn.005e84e0
movsx ecx, byte [edi + 0xb]
mov eax, ecx
test ecx, ecx
jns 0x51edbd
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
test eax, eax
je 0x51ee0b
test cl, cl
jns 0x51edcb
mov edi, dword [ebp - 0x34]
test eax, eax
js 0x51efca
test edi, edi
je 0x51efca
push eax
push edi
push esi
call fcn.004b7ff0
add esp, 0xc
cmp byte [ebp - 0x29], 0
jns 0x51edf7
push dword [ebp - 0x34]
call fcn.006507ee
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov edi, eax
xor eax, eax
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
mov word [ecx + 4], 0
push eax
push 3
push ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x51ee4e
mov eax, dword [ebp - 0x1c]
mov edx, eax
xor edx, 0x58
movzx ecx, word [ebp - 0x1a]
mov ebx, ecx
xor ebx, 0x58
or bx, dx
jne 0x51ef7b
cmp edi, 0x143
jle 0x51eef8
lea ecx, [edi - 0x144]
cmp ecx, 0x18
ja case.default.0x51ee6e
mov eax, 0x4747
jmp dword [ecx*4 + 0x74c4b4]
mov eax, 0x554d
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x1c], ah
mov byte [ebp - 0x11], 2
mov byte [ebp - 0x1b], al
lea ebx, [ebp - 0x28]
push 2
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004b8060
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [ebx]
movsd qword [esi], xmm0
xorps xmm0, xmm0
movsd qword [ebx], xmm0
mov dword [ebx + 8], edi
mov byte [esi + 0xc], 1
cmp byte [ebx + 0xb], 0
jns 0x51eed0
push dword [ebp - 0x28]
call fcn.006507ee
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x51ede6
push dword [ebp - 0x1c]
call fcn.006507ee
add esp, 4
jmp 0x51ede6
mov eax, 0x5553
jmp case.0x51ee6e.324
mov eax, 0x4a45
jmp case.0x51ee6e.324
cmp edi, 0x130
jg 0x51ef2b
cmp edi, 0x7f
je case.0x51ee6e.326
cmp edi, 0x102
je case.0x51ee6e.326
cmp edi, 0x12f
jne case.0x51ee6e.325
mov eax, 0x5348
jmp case.0x51ee6e.324
cmp edi, 0x131
je case.0x51ee6e.326
cmp edi, 0x134
je 0x51ef51
cmp edi, 0x13a
jne case.0x51ee6e.325
mov eax, 0x494f
jmp case.0x51ee6e.324
mov eax, 0x4742
jmp case.0x51ee6e.324
mov eax, 0x494d
jmp case.0x51ee6e.324
cmp edi, 0x3b16
je 0x51ef5b
cmp edi, 0x52fa
je case.0x51ee6e.326
jmp case.0x51ee6e.325
mov edx, eax
xor dl, 0x59
mov dh, cl
xor dh, 0x55
or dh, dl
je 0x51ef97
mov edx, eax
xor dl, 0x43
mov dh, cl
xor dh, 0x53
or dh, dl
jne 0x51ef9b
mov al, 0x52
mov cl, 0x53
movsx edx, cl
xor cl, 0x50
movsx edi, al
xor al, 0x54
shl edi, 8
or al, cl
mov eax, 0x4c
cmovne eax, edx
or eax, edi
cmp eax, 0xffffffff
jne case.0x51ee6e.324
xor eax, eax
mov byte [esi], al
mov byte [esi + 0xc], al
jmp 0x51ede6
ud2
Function at 0x525470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x7b2470]
mov ecx, dword [0x7ad2c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5254bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, 0x7b246c
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x7b2470
call fcn.00650831
add esp, 4
cmp dword [0x7b2470], 0xffffffff
jne 0x5254a3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.006547d0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x58
call fcn.006507be
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x7b24a0]
mov ecx, dword [0x7ad2c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x525566
mov ecx, esi
push ebx
push 0x7b247c
push edi
call fcn.00525660
mov dword [0x7b246c], esi
push 0x7b2470
call fcn.006508ab
add esp, 4
jmp 0x5254a3
push 0x7b24a0
call fcn.00650831
add esp, 4
cmp dword [0x7b24a0], 0xffffffff
jne 0x525540
xorps xmm0, xmm0
movups xmmword [0x7b248c], xmm0
movups xmmword [0x7b247c], xmm0
mov dword [0x7b249c], 0
push 0x7b247c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x7b24a0
call fcn.006508ab
add esp, 4
jmp 0x525540

Function at 0x5255c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7b24a0]
mov ecx, dword [0x7ad2c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5255f1
movzx eax, word [0x7b247c]
cmp eax, 9
jne 0x52563c
xor eax, eax
inc eax
pop ebp
ret
push 0x7b24a0
call fcn.00650831
add esp, 4
cmp dword [0x7b24a0], 0xffffffff
jne 0x5255e0
xorps xmm0, xmm0
movups xmmword [0x7b248c], xmm0
movups xmmword [0x7b247c], xmm0
mov dword [0x7b249c], 0
push 0x7b247c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x7b24a0
call fcn.006508ab
add esp, 4
jmp 0x5255e0
test eax, eax
je 0x5255ef
cmp eax, 6
jne 0x52564c
mov eax, 2
jmp 0x5255ef
cmp eax, 0xc
jne 0x525658
mov eax, 3
jmp 0x5255ef
mov eax, 4
jmp 0x5255ef
Function at 0x526670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 4]
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x5266dd
sub esp, 0x10
movsd xmm0, qword [0x73d800]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x5266dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x526754
lea eax, [edi + 1]
cmp eax, 2
jb 0x5266d3
mov dword [esi + 4], edi
call fcn.005e4650
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
lea edi, [ebp + 0xc]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x526790
xor ecx, ecx
inc ecx
push ecx
push eax
push 0x1000000f
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x526770
lea ecx, [esi + 0x34]
push edi
call fcn.005e5210
lea ebx, [esi + 8]
lea edi, [ebp - 0x20]
push 0x66
push str....._basewin_registry.cc
push str.StartWatching
push edi
call fcn.005e4620
add esp, 0x10
mov ecx, ebx
push edi
push esi
push dword [esi + 4]
call fcn.005cf330
mov ebx, eax
lea ecx, [ebp + 0xc]
call fcn.005e5280
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.005e4650
push dword [esi + 4]
call fcn.005cf200
add esp, 4
mov dword [esi + 4], 0
jmp 0x5266c3
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x526790
call fcn.005e4650
push dword [esi + 4]
call fcn.005cf200
add esp, 4
mov dword [esi + 4], 0
xor ebx, ebx
jmp 0x526736

Function at 0x526920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x526950
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
test eax, eax
je 0x5269dc
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 4]
lea edx, [ebp - 0x24]
mov dword [edx], ecx
mov ecx, ebx
or ecx, 0x10001
push edx
push ecx
push 8
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5269c4
lea eax, [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
and ebx, 0x300
mov dword [ebp - 0x18], ebx
cmp byte [eax], 1
jne 0x5269e3
test ecx, ecx
je 0x5269b4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [ebp + 8]
push dword [esi]
call fcn.00526a40
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, 6
jmp 0x5269c6
mov ebx, ecx
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.00526bb0
cmp byte [ebp - 0x20], 0
jne 0x526a15
push 0
push dword [esi + 4]
push 0x73757e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x526a18
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x5269c6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5269c6
push 1
call fcn.005271e0
jmp 0x5269c6
Function at 0x526a40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x7a9040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, ebx
or ecx, 0x10009
lea edi, [ebp - 0x24]
mov dword [edi], esi
mov edx, dword [ebp + 0xc]
push edi
push ecx
push 8
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x526aeb
mov edx, edi
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
mov eax, ebx
and eax, 0x300
mov dword [ecx + 4], eax
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
push edx
call fcn.00526bb0
cmp byte [ebp - 0x20], 0
jne 0x526b96
push 0
push ebx
push 0x73757e
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x526af3
test edi, edi
je 0x526acc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x526b9e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 2
cmovne esi, eax
jmp 0x526acc
mov esi, 0x200
push esi
call fcn.00650823
add esp, 4
push esi
push 0
mov ebx, eax
push eax
call fcn.006547d0
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x24], 0x100
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0
call esi
test eax, eax
jne 0x526b6a
mov eax, dword [ebp - 0x24]
cmp eax, 0x100
jae 0x526baa
cmp word [ebx + eax*2], 0
jne 0x526bad
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00526a40
add esp, 0xc
test eax, eax
je 0x526b15
jmp 0x526b6d
mov edi, dword [ebp - 0x1c]
push 0
push dword [ebp + 0x10]
push 0x73757e
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
test ebx, ebx
je 0x526ac1
push ebx
call fcn.0065082c
add esp, 4
jmp 0x526ac1
mov esi, dword [ebp - 0x24]
jmp 0x526ac1
push 1
call fcn.005271e0
jmp 0x526ad7
int3
int3
Function at 0x526bb0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ecx], eax
push eax
push eax
push ecx
push eax
push str.SymbolicLinkValue
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x526c01
mov byte [esi], 0
xor eax, eax
mov byte [esi + 4], al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret 4
test eax, eax
jne 0x526c48
cmp dword [ebp - 0x10], 6
jne 0x526be4
push dword [edi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x526c4e
mov edi, eax
mov eax, dword [0x7b24c8]
mov ecx, dword [0x7ad2c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x526c5d
mov ecx, dword [0x7b24c4]
test ecx, ecx
je 0x526c56
call dword [0x7a29f4]
push edi
call ecx
mov dword [esi], eax
mov al, 1
jmp 0x526be9
mov dword [esi], 0
jmp 0x526c4a
mov eax, 5
jmp 0x526c48
push 0x7b24c8
call fcn.00650831
add esp, 4
cmp dword [0x7b24c8], 0xffffffff
jne 0x526c35
push 0x752fae
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7b24c4], eax
push 0x7b24c8
call fcn.006508ab
add esp, 4
jmp 0x526c35

Function at 0x526cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x526d33
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x526d1d
cmp dword [ebp - 0x18], 4
jne 0x526d1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x526d1d