joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30040952
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x3008c490], ebx
je 0x3004098d
mov ecx, dword [esi + 0x3008c494]
cmp ecx, dword [ebp + 0x10]
jne 0x3004098d
xor eax, eax
inc eax
jmp 0x30040a7c
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.3005b52e
mov eax, dword [esi + 0x3008c4a0]
cmp eax, ebx
je 0x300409d4
cmp byte [eax], bl
je 0x300409d4
push edi
lea eax, [ebp - 0x108]
push eax
push 0x30004234
call fcn.3005b5df
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008c4a0]
call fcn.3005b5df
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b5a7
test eax, eax
je 0x30040a59
push dword [ebp - 0x10c]
call fcn.3003ddeb
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040a59
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20006
push ebx
push ebx
mov byte [edi], bl
push ebx
push dword [ebp - 0x10c]
inc edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x30040a59
mov eax, dword [esi + 0x3008c4a4]
cmp eax, ebx
je 0x30040a3c
cmp byte [eax], bl
jne 0x30040a3e
mov eax, edi
push 4
pop edi
push edi
lea ecx, [ebp + 0x10]
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x30040a5d
xor eax, eax
jmp 0x30040a7b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3008c494], eax
xor eax, eax
inc eax
mov dword [esi + 0x3008c498], edi
mov dword [esi + 0x3008c490], eax
mov dword [esi + 0x3008c49c], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 0xc

Function at 0x30040ada
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x30040bb3
call fcn.3003dc3a
test eax, eax
je 0x30040b1c
push 0x30005428
call fcn.3003dcd4
push esi
call fcn.3003dcd4
push 0x30004228
call fcn.3003dcd4
cmp dword [0x300cc51c], 0
jne 0x30040b2f
push esi
call fcn.3003cf93
test eax, eax
je 0x30040b39
push esi
call fcn.3003d056
test eax, eax
jne 0x30040bb3
push 0x824
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.3005b52e
cmp dword [ebp + 0xc], 0
je 0x30040b5f
lea eax, [ebp - 0x828]
push eax
call fcn.3003d1cd
jmp 0x30040bb3
push 0x38
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.3006a130
lea eax, [ebp - 0x828]
mov dword [ebp - 0x854], eax
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
mov dword [ebp - 0x864], 0x3c
mov dword [ebp - 0x848], 0xa
mov dword [ebp - 0x860], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x30040bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30069876
leave
ret 8
Function at 0x30040eec
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x30040f75
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30040f74
push esi
call fcn.3003de13
cmp eax, esi
je 0x30040f74
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edi
push edi
push edi
sub eax, esi
sar eax, 1
push eax
push esi
push edi
push dword [0x300cc534]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 4]
push eax
call fcn.3004349f
test eax, eax
je 0x30040f73
push esi
push edi
push dword [ebp - 4]
call fcn.3006a130
add esp, 0xc
push edi
push edi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push edi
push dword [0x300cc534]
call ebx
test eax, eax
je 0x30040f6b
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.300433f3
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x300410a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x300410b9
xor eax, eax
jmp 0x300410bc
and eax, 0x10
pop ebp
ret 4
Function at 0x300416ef
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 [0x30022344]
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 0x3004172f
lea eax, [ebp - 0x108]
push eax
push 0x300055f8
call edi
push 0x300055e8
call fcn.3003f87d
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10c], eax
je 0x300417eb
push 0x300055d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x300417df
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x3004177f
lea eax, [ebp - 0x108]
push eax
push 0x300055c8
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x3004179f
lea eax, [ebp - 0x108]
push eax
push 0x300055bc
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x300417bf
lea eax, [ebp - 0x108]
push eax
push 0x300055b4
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x300417df
lea eax, [ebp - 0x108]
push eax
push 0x300055a8
call edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push ebx
push 0x30005574
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3004187d
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x3000556c
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30041871
lea eax, [ebp - 0x108]
lea esi, [ebp - 0x108]
push eax
dec esi
call fcn.30059fbc
cmp byte [eax + esi], 0x5c
jne 0x30041863
lea eax, [ebp - 0x108]
push eax
call fcn.30059fbc
mov byte [eax + esi], bl
lea eax, [ebp - 0x108]
push eax
push 0x30005560
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.30069876
leave
ret

Function at 0x3004188c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x3004189d
xor eax, eax
jmp 0x300418fa
cmp dword [ebp + 0x10], edi
push esi
je 0x300418c6
push dword [ebp + 0x10]
call fcn.30043209
mov esi, eax
cmp esi, edi
jne 0x300418b5
xor eax, eax
jmp 0x300418f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.3006a12a
add esp, 0xc
jmp 0x300418c9
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 0x300418e7
push esi
call dword [ebp + 8]
jmp 0x300418f6
mov ecx, dword [0x300bdd00]
lea eax, [ebp - 4]
push eax
call fcn.30025db1
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 0xc
Function at 0x300433a6
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 0x300433c7
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x300433c7
cmp edx, eax
jb 0x300433c7
add eax, 0x10000
cmp eax, ecx
jae 0x300433f2
mov eax, dword [0x3008cb30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.300436bb
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x30043e16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x30043e5c
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3005ed81
mov edi, eax
cmp edi, 0xffffffff
je 0x30043e5b
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 0x30044a2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.3006a1b2
mov eax, dword [0x30022344]
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.30044753
test eax, eax
pop ecx
pop ecx
jne 0x30044a6d
or eax, 0xffffffff
jmp 0x30044bfe
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x30044a93
inc esi
inc esi
cmp word [esi], 0
jne 0x30044a85
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.300437fc
pop ecx
call fcn.300439ba
push eax
call fcn.3004c2f9
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x30044abf
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 0x30005704
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.3005a190
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.3005ed81
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x30044ba9
cmp dword [ebp - 0x1070], 0x64
jb 0x30044b42
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x30044ae5
push eax
push 0x30005704
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.3005a190
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.3005ed81
mov dword [ebp - 0x1080], eax
jmp 0x30044bab
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x30044bba
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.300439ba
push eax
call fcn.3004c321
push dword [0x3008cb28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x30044bf8
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.3005b50c
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret
Function at 0x300459a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x300459b4
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.30043e5f
add esp, 0x10
test eax, eax
je 0x30045aeb
cmp dword [ebp - 4], esi
je 0x30045aeb
push ebx
mov ebx, 0x300d6290
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.3004532e
test eax, eax
pop ecx
jne 0x30045a0f
xor edi, edi
jmp 0x30045ae3
cmp dword [0x300d3c6c], esi
je 0x30045a22
push esi
push 0x72766c72
call fcn.300436bb
lea eax, [ebp - 0x14]
push eax
mov dword [0x300d3c6c], 1
mov dword [ebp - 0x14], esi
call fcn.30043d80
cmp eax, dword [ebp - 8]
pop ecx
jne 0x30045a46
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x30045a81
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043eab
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.30043e5f
add esp, 0x18
test eax, eax
je 0x30045a72
cmp dword [ebp - 4], esi
jne 0x30045a81
push esi
push 0x72766c73
call fcn.300436bb
xor edi, edi
jmp 0x30045a97
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.300447e6
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x300d3c6c], esi
push esi
je 0x30045ad9
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 0x30045ac4
cmp dword [ebp - 0x14], edi
jne 0x30045ac4
xor edi, edi
inc edi
jmp 0x30045ac6
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30043e16
add esp, 0xc
jmp 0x30045ae3
push 0x74697970
call fcn.300436bb
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 0x30045b0f
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043eab
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x300461db
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x300d62e8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x3004621f
call ebx
test eax, eax
jns 0x30046215
push 0x30005840
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30005834
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x300d62e4], eax
mov dword [0x300d62e8], 1
mov eax, dword [0x300d62e4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x3004623b
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x3004626b
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30046261
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30046256
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x3004625b
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x3004626a
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 0x3004642f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x30022344]
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 0x3004646f
xor eax, eax
jmp 0x300465dc
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.30047ee2
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 0x300464d4
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 0x30046570
test edi, edi
je 0x30046570
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30047d60
test eax, eax
je 0x30046556
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.30047e9a
cmp dword [ebp - 0x40c], 5
jne 0x30046556
cmp dword [ebp - 0x418], 0
jne 0x30046556
mov dword [ebp - 0x418], ebx
jmp 0x300464af
cmp dword [esi], 0
je 0x30046570
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 0x3004657d
cmp eax, 0xffffffff
jne 0x3004659c
cmp edi, ecx
je 0x3004658c
push ecx
push 0x787a6c65
call fcn.300436bb
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 0x300465c4
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x300465b5
mov eax, 0x30002a3d
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.3005b52e
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x300465d6
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.30069876
leave
ret 0x1c
Function at 0x3004b731
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 0x3004b749
xor eax, eax
jmp 0x3004b836
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x3004b759
cmp dword [0x300d676c], edi
je 0x3004b76a
cmp dword [0x300d7774], edi
mov dword [ebp - 4], edi
je 0x3004b771
test byte [ebx + 0xc], 0x10
jne 0x3004b771
xor eax, eax
jmp 0x3004b835
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.3004af3a
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x3004b7ef
mov eax, dword [ebx]
cmp eax, edi
je 0x3004b79c
push eax
call fcn.3005bc92
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x3004b7a8
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 0x3004b7c5
push dword [ebp - 4]
call fcn.300433f3
push esi
call fcn.3004ab58
test eax, eax
pop ecx
je 0x3004b80a
push 0x796d7468
push edi
call fcn.3004370f
push dword [ebp + 8]
mov ecx, 0x300d6778
call fcn.3004b0da
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.3004b19c
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x3004b78d
jmp 0x3004b817
push dword [ebp + 8]
mov ecx, 0x300d6778
call fcn.3004b058
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x300d6774], edi
mov esi, eax
je 0x3004b833
push 0x300d6290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3004bbd8
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 0x3004bbee
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 0x3004bc20
cmp dword [ebp + 0xc], 1
je 0x3004bc1e
cmp dword [ebp + 0xc], ebx
jne 0x3004bc20
mov edi, ebx
push edi
call fcn.3004ab58
test eax, eax
pop ecx
je 0x3004bc46
push 0x796d746b
push 0
call fcn.3004370f
push dword [ebp + 8]
mov ecx, 0x300d6778
call fcn.3004b0da
jmp 0x3004bca5
test edi, edi
jne 0x3004bc98
cmp dword [ebp + 0xc], ebx
je 0x3004bc55
cmp dword [ebp + 0xc], 1
jne 0x3004bc60
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3004bc6a
cmp byte [ebp + 0x1c], bl
jne 0x3004bc83
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.3004abaf
test eax, eax
pop ecx
pop ecx
jne 0x3004bc83
mov edi, 0xea
jmp 0x3004bc98
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3004ab85
test eax, eax
pop ecx
pop ecx
jne 0x3004bc98
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x300d6778
call fcn.3004b058
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3004bcac
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 0x3004bcc7
mov eax, 0xa0
jmp 0x3004be14
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3004bcd9
push eax
call fcn.3005bc92
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3004bcf3
cmp dword [0x300d676c], esi
je 0x3004bd01
mov dword [ebp - 0x10], 2
jmp 0x3004bd0e
cmp dword [ebp + 8], 1
jne 0x3004bd01
cmp dword [0x300d7774], esi
je 0x3004bd0b
test byte [ebx + 0xc], 0x10
je 0x3004bdd3
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.3004af3a
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3004bd73
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 0x3004bd33
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.3004ab58
test eax, eax
pop ecx
je 0x3004bd8f
push 0x796d746c
xor edi, edi
push edi
call fcn.3004370f
push esi
mov ecx, 0x300d6778
call fcn.3004b0da
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.3004b19c
add esp, 0x14
test eax, eax
je 0x3004bd1f
jmp 0x3004bdbe
push esi
mov ecx, 0x300d6778
call fcn.3004b058
test edi, edi
jne 0x3004bdbe
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3004be1a
cmp dword [ebp - 0x18], 3
jne 0x3004bdbe
cmp dword [ebp - 4], 4
jne 0x3004bdbe
and al, 0xf
cmp al, 4
je 0x3004be1a
xor esi, esi
cmp dword [0x300d6774], esi
je 0x3004bdd3
push 0x300d6290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3004bcdd
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.3004ac4b
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3004be09
push dword [ebp - 0xc]
call fcn.300433f3
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 [0x300d6774], 0
je 0x3004bdfb
push 0x300d6290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3004bdfb