joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300414d7
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x30041517
lea eax, [ebp - 0x108]
push eax
push 0x30005590
call edi
push 0x30005580
call fcn.3003f64a
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10c], eax
je 0x300415d3
push 0x3000556c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x300415c7
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x30041567
lea eax, [ebp - 0x108]
push eax
push 0x30005560
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x30041587
lea eax, [ebp - 0x108]
push eax
push 0x30005554
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x300415a7
lea eax, [ebp - 0x108]
push eax
push 0x3000554c
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x300415c7
lea eax, [ebp - 0x108]
push eax
push 0x30005540
call edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push ebx
push 0x3000550c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30041665
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x30005504
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30041659
lea eax, [ebp - 0x108]
lea esi, [ebp - 0x108]
push eax
dec esi
call fcn.30059d82
cmp byte [eax + esi], 0x5c
jne 0x3004164b
lea eax, [ebp - 0x108]
push eax
call fcn.30059d82
mov byte [eax + esi], bl
lea eax, [ebp - 0x108]
push eax
push 0x300054f8
call edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret

Function at 0x30041674
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x30041685
xor eax, eax
jmp 0x300416e2
cmp dword [ebp + 0x10], edi
push esi
je 0x300416ae
push dword [ebp + 0x10]
call fcn.30042ff1
mov esi, eax
cmp esi, edi
jne 0x3004169d
xor eax, eax
jmp 0x300416e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x300416b1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x300416cf
push esi
call dword [ebp + 8]
jmp 0x300416de
mov ecx, dword [0x300bccd0]
lea eax, [ebp - 4]
push eax
call fcn.30040334
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 0xc
Function at 0x3004318e
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x300431af
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x300431af
cmp edx, eax
jb 0x300431af
add eax, 0x10000
cmp eax, ecx
jae 0x300431da
mov eax, dword [0x3008bb00]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.300434a3
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x30043bae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x30043bf4
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3005eb51
mov edi, eax
cmp edi, 0xffffffff
je 0x30043bf3
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 0x30043ef2
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 0x30043f14
push edi
push 0x36717370
call fcn.300434a3
jmp 0x30044051
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x30043f27
push edi
push 0x36717371
jmp 0x30044026
cmp dword [ebp + 8], 2
je 0x30043f44
cmp dword [ebp + 8], 8
je 0x30043f44
cmp dword [ebp + 8], 3
je 0x30043f44
push edi
push 0x36717372
jmp 0x30044026
cmp dword [ebx], edi
je 0x30043f53
push edi
push 0x36717373
call fcn.300434a3
cmp dword [esi], edi
je 0x30043f62
push edi
push 0x37667270
call fcn.300434a3
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 0x3004402d
cmp eax, 0xea
jne 0x3004402d
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.30042ff1
test eax, eax
mov dword [ebx], eax
jne 0x30043fb1
push eax
push 0x36717375
jmp 0x30044034
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 0x30043fd1
push 0
push 0x36717376
jmp 0x30044034
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x30043fe5
push 0
push 0x36717377
call fcn.300434a3
cmp edi, 2
jne 0x30044001
push dword [esi]
push dword [ebx]
call fcn.30043810
test eax, eax
pop ecx
pop ecx
jne 0x30044050
push eax
push 0x36717378
jmp 0x30044034
cmp edi, 8
jne 0x3004401a
push dword [ebx]
call fcn.3004387f
test eax, eax
pop ecx
jne 0x30044050
push eax
push 0x36717379
jmp 0x30044034
cmp edi, 3
je 0x30044050
push 0
push 0x3671737a
call fcn.300434a3
jmp 0x30044050
push 0
push 0x36717374
call fcn.300434a3
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x3004404a
push eax
call fcn.30025734
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x30044050
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x300447ee
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.30069f57
mov eax, dword [0x3002223c]
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.30044515
test eax, eax
pop ecx
pop ecx
jne 0x3004482f
or eax, 0xffffffff
jmp 0x300449c0
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x30044855
inc esi
inc esi
cmp word [esi], 0
jne 0x30044847
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.30043614
pop ecx
call fcn.300437a8
push eax
call fcn.3004c0f9
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x30044881
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 0x3000569c
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.30059f56
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.3005eb51
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x3004496b
cmp dword [ebp - 0x1070], 0x64
jb 0x30044904
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x300448a7
push eax
push 0x3000569c
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.30059f56
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.3005eb51
mov dword [ebp - 0x1080], eax
jmp 0x3004496d
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x3004497c
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.300437a8
push eax
call fcn.3004c121
push dword [0x3008baf8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x300449ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.3005b2d4
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret
Function at 0x30045766
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x30045776
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.30043bf7
add esp, 0x10
test eax, eax
je 0x300458ad
cmp dword [ebp - 4], esi
je 0x300458ad
push ebx
mov ebx, 0x300cb5c0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.300450f0
test eax, eax
pop ecx
jne 0x300457d1
xor edi, edi
jmp 0x300458a5
cmp dword [0x300c8f9c], esi
je 0x300457e4
push esi
push 0x72766c72
call fcn.300434a3
lea eax, [ebp - 0x14]
push eax
mov dword [0x300c8f9c], 1
mov dword [ebp - 0x14], esi
call fcn.30043b18
cmp eax, dword [ebp - 8]
pop ecx
jne 0x30045808
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x30045843
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043c43
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.30043bf7
add esp, 0x18
test eax, eax
je 0x30045834
cmp dword [ebp - 4], esi
jne 0x30045843
push esi
push 0x72766c73
call fcn.300434a3
xor edi, edi
jmp 0x30045859
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.300445a8
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x300c8f9c], esi
push esi
je 0x3004589b
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 0x30045886
cmp dword [ebp - 0x14], edi
jne 0x30045886
xor edi, edi
inc edi
jmp 0x30045888
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30043bae
add esp, 0xc
jmp 0x300458a5
push 0x74697970
call fcn.300434a3
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 0x300458d1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043c43
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x300458d7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.30069f57
mov eax, dword [0x3002223c]
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.30044515
test eax, eax
pop ecx
pop ecx
je 0x30045992
push ebx
push 0x300056ac
call fcn.3005ba5a
mov ebx, eax
test ebx, ebx
je 0x30045991
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.3005b356
push ebx
call fcn.300431db
call fcn.30045753
test eax, eax
je 0x3004598f
call fcn.300456ac
test eax, eax
je 0x3004598f
call fcn.3004566b
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.300447ee
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.30045766
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x3004597f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x3004598f
push 0x104
push 0x300c8d7c
push eax
call fcn.3005b2d4
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.3006961b
leave
ret

Function at 0x30045fbd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x300cb618], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30046001
call ebx
test eax, eax
jns 0x30045ff7
push 0x300057a0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30005794
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x300cb614], eax
mov dword [0x300cb618], 1
mov eax, dword [0x300cb614]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x3004601d
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x3004604d
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30046043
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30046038
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x3004603d
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x3004604c
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x30046211
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x30046251
xor eax, eax
jmp 0x300463be
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.30047cc4
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x300462b6
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x30046352
test edi, edi
je 0x30046352
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30047b42
test eax, eax
je 0x30046338
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30047c7c
cmp dword [ebp - 0x40c], 5
jne 0x30046338
cmp dword [ebp - 0x418], 0
jne 0x30046338
mov dword [ebp - 0x418], ebx
jmp 0x30046291
cmp dword [esi], 0
je 0x30046352
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x3004635f
cmp eax, 0xffffffff
jne 0x3004637e
cmp edi, ecx
je 0x3004636e
push ecx
push 0x787a6c65
call fcn.300434a3
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x300463a6
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x30046397
mov eax, 0x300029e5
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.3005b2f6
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x300463b8
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3006961b
leave
ret 0x1c
Function at 0x3004a33f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.30064c50
mov esi, eax
cmp esi, ebx
je 0x3004a3af
push esi
lea eax, [ebp - 4]
push eax
call fcn.30043287
test eax, eax
je 0x3004a3af
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.30064c56
test eax, eax
je 0x3004a3a7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30003940
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x3004a3a7
cmp dword [ebp - 8], ebx
je 0x3004a3a7
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.300431db
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x3004b531
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 0x3004b549
xor eax, eax
jmp 0x3004b636
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x3004b559
cmp dword [0x300cba9c], edi
je 0x3004b56a
cmp dword [0x300ccaa4], edi
mov dword [ebp - 4], edi
je 0x3004b571
test byte [ebx + 0xc], 0x10
jne 0x3004b571
xor eax, eax
jmp 0x3004b635
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.3004ad3c
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x3004b5ef
mov eax, dword [ebx]
cmp eax, edi
je 0x3004b59c
push eax
call fcn.3005ba5a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x3004b5a8
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 0x3004b5c5
push dword [ebp - 4]
call fcn.300431db
push esi
call fcn.3004a95a
test eax, eax
pop ecx
je 0x3004b60a
push 0x796d7468
push edi
call fcn.300434f7
push dword [ebp + 8]
mov ecx, 0x300cbaa8
call fcn.3004aeda
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.3004af9c
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x3004b58d
jmp 0x3004b617
push dword [ebp + 8]
mov ecx, 0x300cbaa8
call fcn.3004ae58
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x300cbaa4], edi
mov esi, eax
je 0x3004b633
push 0x300cb5c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3004b9d8
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 0x3004b9ee
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 0x3004ba20
cmp dword [ebp + 0xc], 1
je 0x3004ba1e
cmp dword [ebp + 0xc], ebx
jne 0x3004ba20
mov edi, ebx
push edi
call fcn.3004a95a
test eax, eax
pop ecx
je 0x3004ba46
push 0x796d746b
push 0
call fcn.300434f7
push dword [ebp + 8]
mov ecx, 0x300cbaa8
call fcn.3004aeda
jmp 0x3004baa5
test edi, edi
jne 0x3004ba98
cmp dword [ebp + 0xc], ebx
je 0x3004ba55
cmp dword [ebp + 0xc], 1
jne 0x3004ba60
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3004ba6a
cmp byte [ebp + 0x1c], bl
jne 0x3004ba83
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.3004a9b1
test eax, eax
pop ecx
pop ecx
jne 0x3004ba83
mov edi, 0xea
jmp 0x3004ba98
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3004a987
test eax, eax
pop ecx
pop ecx
jne 0x3004ba98
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x300cbaa8
call fcn.3004ae58
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3004baac
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 0x3004bac7
mov eax, 0xa0
jmp 0x3004bc14
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3004bad9
push eax
call fcn.3005ba5a
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3004baf3
cmp dword [0x300cba9c], esi
je 0x3004bb01
mov dword [ebp - 0x10], 2
jmp 0x3004bb0e
cmp dword [ebp + 8], 1
jne 0x3004bb01
cmp dword [0x300ccaa4], esi
je 0x3004bb0b
test byte [ebx + 0xc], 0x10
je 0x3004bbd3
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.3004ad3c
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3004bb73
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 0x3004bb33
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.3004a95a
test eax, eax
pop ecx
je 0x3004bb8f
push 0x796d746c
xor edi, edi
push edi
call fcn.300434f7
push esi
mov ecx, 0x300cbaa8
call fcn.3004aeda
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.3004af9c
add esp, 0x14
test eax, eax
je 0x3004bb1f
jmp 0x3004bbbe
push esi
mov ecx, 0x300cbaa8
call fcn.3004ae58
test edi, edi
jne 0x3004bbbe
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3004bc1a
cmp dword [ebp - 0x18], 3
jne 0x3004bbbe
cmp dword [ebp - 4], 4
jne 0x3004bbbe
and al, 0xf
cmp al, 4
je 0x3004bc1a
xor esi, esi
cmp dword [0x300cbaa4], esi
je 0x3004bbd3
push 0x300cb5c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3004badd
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.3004aa4d
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3004bc09
push dword [ebp - 0xc]
call fcn.300431db
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 [0x300cbaa4], 0
je 0x3004bbfb
push 0x300cb5c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3004bbfb