joyce8/EMBER2024-capa huggingface dataset:
Function at 0x646e0b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
jmp 0x646e43
mov eax, dword [edi]
push dword [0x71e8c0]
mov dword [ebp - 4], eax
call ebx
test eax, eax
je 0x646e40
push dword [0x71e8c0]
call ebx
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x10]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x646e1f
and dword [esi + 0xc], edi
mov edi, dword [esi + 8]
jmp 0x646e7c
mov eax, dword [edi]
test eax, eax
mov dword [ebp - 4], eax
jne 0x646e5d
cmp dword [ebp + 8], eax
je 0x646e82
push dword [0x71e8c0]
call ebx
test eax, eax
je 0x646e79
push dword [0x71e8c0]
call ebx
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x10]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x646e4f
jmp 0x646e91
mov eax, dword [esi + 0x14]
mov dword [esi + 8], edi
add edi, 4
mov dword [esi + 0x10], eax
mov dword [esi + 4], edi
xor eax, eax
cmp dword [ebp + 8], eax
je 0x646ea1
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x6479f3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.00646fcb
mov eax, dword [ebp + 0xc]
push dword [0x728f98]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
shl eax, 4
sar ebx, 4
shl ebx, 4
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x2c]
call fcn.00647e2d
push 0xa
pop ecx
lea edx, [esi + 0x2c]
mov dword [ebp + 0xc], eax
xor eax, eax
push edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
lea eax, [esi + 0x54]
push eax
push edi
push ebx
push 0
push dword [ebp + 0xc]
mov dword [edx], 0x28
call fcn.00649bfd
mov dword [esi + 0x20], eax
push dword [0x728f98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 0xc]
lea ecx, [eax + 0x2c]
call fcn.00647e7c
xor eax, eax
cmp dword [esi + 0x20], eax
je 0x647a8e
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x648813
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push esi
call fcn.0066e181
add esp, 0xc
mov dword [esi], edi
call dword [sym.imp.USER32.dll_GetMessageTime]
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x6488bb
mov eax, 0x80
test byte [ebp - 0x103], al
je 0x64886b
or dword [esi + 0x18], 0x40
test byte [ebp - 0x102], al
je 0x648876
or dword [esi + 0x18], eax
test byte [ebp - 0x100], al
je 0x648885
or dword [esi + 0x18], 0x100
test byte [ebp - 0x64], al
je 0x64888e
or dword [esi + 0x18], 4
test byte [ebp - 0x63], al
je 0x648897
or dword [esi + 0x18], 8
test byte [ebp - 0x62], al
je 0x6488a0
or dword [esi + 0x18], 1
test byte [ebp - 0x61], al
je 0x6488a9
or dword [esi + 0x18], 2
test byte [ebp - 0x60], al
je 0x6488b2
or dword [esi + 0x18], 0x10
test byte [ebp - 0x5f], al
je 0x6488bb
or dword [esi + 0x18], 0x20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0066d880
leave
ret 8
Function at 0x64e35f
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x64e381
push edi
push 0x36717370
call fcn.00652d6d
jmp 0x64e4bf
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x64e394
push edi
push 0x36717371
jmp 0x64e494
cmp dword [ebp + 8], 2
je 0x64e3b1
cmp dword [ebp + 8], 8
je 0x64e3b1
cmp dword [ebp + 8], 3
je 0x64e3b1
push edi
push 0x36717372
jmp 0x64e494
cmp dword [ebx], edi
je 0x64e3c0
push edi
push 0x36717373
call fcn.00652d6d
cmp dword [esi], edi
je 0x64e3cf
push edi
push 0x37667270
call fcn.00652d6d
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x64e49b
cmp eax, 0xea
jne 0x64e49b
mov eax, dword [esi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.osetup.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebx], eax
jne 0x64e41f
push eax
push 0x36717375
jmp 0x64e4a2
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x64e43f
push 0
push 0x36717376
jmp 0x64e4a2
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x64e453
push 0
push 0x36717377
call fcn.00652d6d
cmp edi, 2
jne 0x64e46f
push dword [esi]
push dword [ebx]
call fcn.0064e2b2
test eax, eax
pop ecx
pop ecx
jne 0x64e4be
push eax
push 0x36717378
jmp 0x64e4a2
cmp edi, 8
jne 0x64e488
push dword [ebx]
call fcn.0064e321
test eax, eax
pop ecx
jne 0x64e4be
push eax
push 0x36717379
jmp 0x64e4a2
cmp edi, 3
je 0x64e4be
push 0
push 0x3671737a
call fcn.00652d6d
jmp 0x64e4be
push 0
push 0x36717374
call fcn.00652d6d
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x64e4b8
push eax
call sym.osetup.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x64e4be
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x64e7d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x64e81a
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.006a4279
mov edi, eax
cmp edi, 0xffffffff
je 0x64e819
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x64f222
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.0066dda2
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x107c], eax
mov ebx, 0x824
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.0064ef49
test eax, eax
pop ecx
pop ecx
jne 0x64f263
or eax, 0xffffffff
jmp 0x64f3f4
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x64f289
inc esi
inc esi
cmp word [esi], 0
jne 0x64f27b
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.0064e0b6
pop ecx
call fcn.0064e24a
push eax
call fcn.006522eb
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x64f2b5
mov dword [ebp - 0x1070], edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x106c]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x1074], ebx
sub dword [ebp - 0x1074], esi
mov esi, 0x80
mov ebx, 0xc0000000
push dword [ebp - 0x1070]
lea eax, [ebp - 0x24]
push 0x4f3178
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.005949aa
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.006a4279
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x64f39f
cmp dword [ebp - 0x1070], 0x64
jb 0x64f338
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x64f2db
push eax
push 0x4f3178
lea eax, [ebp - 0x24]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.005949aa
push esi
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push edi
push esi
push 2
push edi
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.006a4279
mov dword [ebp - 0x1080], eax
jmp 0x64f3a1
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x64f3b0
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.0064e24a
push eax
call fcn.00652313
push dword [0x729f7c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x64f3ee
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.005962b0
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0066d880
leave
ret
Function at 0x6501a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x6501b7
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0064e81d
add esp, 0x10
test eax, eax
je 0x6502ee
cmp dword [ebp - 4], esi
je 0x6502ee
push ebx
mov ebx, 0x730478
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.0064fb28
test eax, eax
pop ecx
jne 0x650212
xor edi, edi
jmp 0x6502e6
cmp dword [0x73073c], esi
je 0x650225
push esi
push 0x72766c72
call fcn.00652d6d
lea eax, [ebp - 0x14]
push eax
mov dword [0x73073c], 1
mov dword [ebp - 0x14], esi
call fcn.0064e73e
cmp eax, dword [ebp - 8]
pop ecx
jne 0x650249
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x650284
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0064e86a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0064e81d
add esp, 0x18
test eax, eax
je 0x650275
cmp dword [ebp - 4], esi
jne 0x650284
push esi
push 0x72766c73
call fcn.00652d6d
xor edi, edi
jmp 0x65029a
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0064efdc
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x73073c], esi
push esi
je 0x6502dc
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6502c7
cmp dword [ebp - 0x14], edi
jne 0x6502c7
xor edi, edi
inc edi
jmp 0x6502c9
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.0064e7d4
add esp, 0xc
jmp 0x6502e6
push 0x74697970
call fcn.00652d6d
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x650312
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0064e86a
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x650318
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.0066dda2
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x824
lea eax, [ebp - 0x104c]
push esi
xor edi, edi
push eax
inc edi
call fcn.0064ef49
test eax, eax
pop ecx
pop ecx
je 0x6503d3
push ebx
push 0x4f3188
call fcn.00597660
mov ebx, eax
test ebx, ebx
je 0x6503d2
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.00596332
push ebx
call fcn.00654013
call fcn.00650194
test eax, eax
je 0x6503d0
call fcn.006500ed
test eax, eax
je 0x6503d0
call fcn.006500ac
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.0064f222
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.006501a7
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x6503c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x6503d0
push 0x104
push 0x73051c
push eax
call fcn.005962b0
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0066d880
leave
ret

Function at 0x6503e1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x6503f0
xor eax, eax
jmp 0x650432
push esi
call fcn.0064fb28
test eax, eax
pop ecx
je 0x6503ec
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.006a4279
push esi
push esi
push eax
call fcn.006501a7
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x65042f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x650437
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
push esi
call fcn.006a41e7
mov edi, eax
test edi, edi
je 0x6504be
cmp edi, esi
ja 0x6504be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4f3244
sub esi, edi
lea eax, [ebx + edi*2]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test eax, eax
jle 0x6504be
xor esi, esi
push esi
call fcn.0064fb28
test eax, eax
pop ecx
je 0x650493
push ebx
call fcn.006503e1
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x6504be
push esi
call fcn.0064fb28
test eax, eax
pop ecx
jne 0x6504be
cmp word [0x73051c], si
je 0x6504be
xor esi, esi
inc esi
push esi
push ebx
push 0x73051c
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x6504be
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x651606
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x651620
mov eax, 0xa0
jmp 0x651712
push ebx
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
jmp 0x6516b0
mov eax, dword [edi]
xor ebx, ebx
cmp eax, esi
je 0x651654
push eax
call fcn.00597660
mov ebx, eax
cmp ebx, esi
jne 0x651654
push esi
push 0x77626966
call fcn.00652d6d
mov dword [ebp - 8], 8
jmp 0x65166b
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x651660
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 8], eax
cmp ebx, esi
je 0x651675
push ebx
call fcn.00654013
push dword [ebp - 8]
call fcn.00650993
test eax, eax
pop ecx
je 0x6516ee
push 0x796d7466
push esi
call fcn.00652dc1
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650f13
cmp dword [0x730758], esi
mov dword [ebp + 8], esi
je 0x6516b0
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0xb]
call fcn.00650d75
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push dword [edi + 8]
call fcn.00650ffa
mov ebx, eax
add esp, 0x14
cmp ebx, esi
je 0x65162c
cmp dword [0x730758], esi
je 0x6516ea
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x651711
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650e91
cmp dword [0x730758], esi
je 0x65170e
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x651718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x651730
xor eax, eax
jmp 0x65181d
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x651740
cmp dword [0x73074c], edi
je 0x651751
cmp dword [0x73411c], edi
mov dword [ebp - 4], edi
je 0x651758
test byte [ebx + 0xc], 0x10
jne 0x651758
xor eax, eax
jmp 0x65181c
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.00650d75
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x6517d6
mov eax, dword [ebx]
cmp eax, edi
je 0x651783
push eax
call fcn.00597660
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x65178f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x6517ac
push dword [ebp - 4]
call fcn.00654013
push esi
call fcn.00650993
test eax, eax
pop ecx
je 0x6517f1
push 0x796d7468
push edi
call fcn.00652dc1
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650f13
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 8]
call fcn.00650ffa
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x651774
jmp 0x6517fe
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650e91
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x730758], edi
mov esi, eax
je 0x65181a
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x651bbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x651bd5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
cmp dword [ebp - 4], ebx
mov edi, eax
jae 0x651c07
cmp dword [ebp + 0xc], 1
je 0x651c05
cmp dword [ebp + 0xc], ebx
jne 0x651c07
mov edi, ebx
push edi
call fcn.00650993
test eax, eax
pop ecx
je 0x651c2d
push 0x796d746b
push 0
call fcn.00652dc1
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650f13
jmp 0x651c8c
test edi, edi
jne 0x651c7f
cmp dword [ebp + 0xc], ebx
je 0x651c3c
cmp dword [ebp + 0xc], 1
jne 0x651c47
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x651c51
cmp byte [ebp + 0x1c], bl
jne 0x651c6a
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.006509ea
test eax, eax
pop ecx
pop ecx
jne 0x651c6a
mov edi, 0xea
jmp 0x651c7f
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.006509c0
test eax, eax
pop ecx
pop ecx
jne 0x651c7f
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x730760
call fcn.00650e91
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x651c93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
jne 0x651cae
mov eax, 0xa0
jmp 0x651dfb
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x651cc0
push eax
call fcn.00597660
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x651cda
cmp dword [0x73074c], esi
je 0x651ce8
mov dword [ebp - 0x10], 2
jmp 0x651cf5
cmp dword [ebp + 8], 1
jne 0x651ce8
cmp dword [0x73411c], esi
je 0x651cf2
test byte [ebx + 0xc], 0x10
je 0x651dba
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.00650d75
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x651d5a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x651d1a
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.00650993
test eax, eax
pop ecx
je 0x651d76
push 0x796d746c
xor edi, edi
push edi
call fcn.00652dc1
push esi
mov ecx, 0x730760
call fcn.00650f13
mov dword [ebp - 8], edi
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call fcn.00650ffa
add esp, 0x14
test eax, eax
je 0x651d06
jmp 0x651da5
push esi
mov ecx, 0x730760
call fcn.00650e91
test edi, edi
jne 0x651da5
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x651e01
cmp dword [ebp - 0x18], 3
jne 0x651da5
cmp dword [ebp - 4], 4
jne 0x651da5
and al, 0xf
cmp al, 4
je 0x651e01
xor esi, esi
cmp dword [0x730758], esi
je 0x651dba
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x651cc4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00650a86
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x651df0
push dword [ebp - 0xc]
call fcn.00654013
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x730758], 0
je 0x651de2
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x651de2
Function at 0x65210f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x652127
xor eax, eax
jmp 0x65229e
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x65213f
push eax
call fcn.00597660
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x65215c
cmp dword [0x73074c], ebx
je 0x65216a
mov dword [ebp - 0x1c], 2
jmp 0x652177
cmp dword [ebp - 8], 1
jne 0x65216a
cmp dword [0x73411c], ebx
je 0x652174
test byte [esi + 0xc], 0x10
je 0x652238
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.00650d75
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x652200
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x65219f
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x6521ca
cmp dword [ebp - 0x14], 1
je 0x6521c7
cmp dword [ebp - 0x14], 2
jne 0x6521ca
push 2
pop edi
push edi
call fcn.00650993
test eax, eax
pop ecx
je 0x652213
push 0x796d746f
push ebx
call fcn.00652dc1
push esi
mov ecx, 0x730760
call fcn.00650f13
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00650ffa
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x652193
jmp 0x652222
push esi
mov ecx, 0x730760
call fcn.00650e91
cmp edi, ebx
je 0x652247
cmp dword [0x730758], ebx
je 0x652235
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x652143
jmp 0x65225a
cmp dword [0x730758], ebx
je 0x65225e
push 0x730478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x65227e
cmp dword [ebp - 0x14], 2
je 0x652270
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x65227e
push dword [ebp - 4]
call fcn.00650bb4
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x65228b
push dword [ebp - 0x18]
call fcn.00654013
cmp edi, ebx
pop edi
je 0x65229b
push dword [ebp + 8]
call fcn.00650bcf
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x6522a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065210f