joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3004325f
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 0x30043280
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x30043280
cmp edx, eax
jb 0x30043280
add eax, 0x10000
cmp eax, ecx
jae 0x300432ab
mov eax, dword [0x3008bb00]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.30043574
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x30043c4f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x30043c95
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3005ebd1
mov edi, eax
cmp edi, 0xffffffff
je 0x30043c94
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 0x30043f9a
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 0x30043fbc
push edi
push 0x36717370
call fcn.30043574
jmp 0x300440f9
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x30043fcf
push edi
push 0x36717371
jmp 0x300440ce
cmp dword [ebp + 8], 2
je 0x30043fec
cmp dword [ebp + 8], 8
je 0x30043fec
cmp dword [ebp + 8], 3
je 0x30043fec
push edi
push 0x36717372
jmp 0x300440ce
cmp dword [ebx], edi
je 0x30043ffb
push edi
push 0x36717373
call fcn.30043574
cmp dword [esi], edi
je 0x3004400a
push edi
push 0x37667270
call fcn.30043574
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 0x300440d5
cmp eax, 0xea
jne 0x300440d5
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.300430c2
test eax, eax
mov dword [ebx], eax
jne 0x30044059
push eax
push 0x36717375
jmp 0x300440dc
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 0x30044079
push 0
push 0x36717376
jmp 0x300440dc
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x3004408d
push 0
push 0x36717377
call fcn.30043574
cmp edi, 2
jne 0x300440a9
push dword [esi]
push dword [ebx]
call fcn.300438b1
test eax, eax
pop ecx
pop ecx
jne 0x300440f8
push eax
push 0x36717378
jmp 0x300440dc
cmp edi, 8
jne 0x300440c2
push dword [ebx]
call fcn.30043920
test eax, eax
pop ecx
jne 0x300440f8
push eax
push 0x36717379
jmp 0x300440dc
cmp edi, 3
je 0x300440f8
push 0
push 0x3671737a
call fcn.30043574
jmp 0x300440f8
push 0
push 0x36717374
call fcn.30043574
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x300440f2
push eax
call fcn.300257dd
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x300440f8
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3004486c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.3006a003
mov eax, dword [0x3002226c]
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.30044593
test eax, eax
pop ecx
pop ecx
jne 0x300448ad
or eax, 0xffffffff
jmp 0x30044a3e
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x300448d3
inc esi
inc esi
cmp word [esi], 0
jne 0x300448c5
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.300436b5
pop ecx
call fcn.30043849
push eax
call fcn.3004c159
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x300448ff
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 0x300056cc
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.30059fd6
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.3005ebd1
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x300449e9
cmp dword [ebp - 0x1070], 0x64
jb 0x30044982
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x30044925
push eax
push 0x300056cc
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.30059fd6
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.3005ebd1
mov dword [ebp - 0x1080], eax
jmp 0x300449eb
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x300449fa
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.30043849
push eax
call fcn.3004c181
push dword [0x3008baf8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x30044a38
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.3005b354
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret
Function at 0x300457e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x300457f4
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.30043c98
add esp, 0x10
test eax, eax
je 0x3004592b
cmp dword [ebp - 4], esi
je 0x3004592b
push ebx
mov ebx, 0x300d5260
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.3004516e
test eax, eax
pop ecx
jne 0x3004584f
xor edi, edi
jmp 0x30045923
cmp dword [0x300d2c3c], esi
je 0x30045862
push esi
push 0x72766c72
call fcn.30043574
lea eax, [ebp - 0x14]
push eax
mov dword [0x300d2c3c], 1
mov dword [ebp - 0x14], esi
call fcn.30043bb9
cmp eax, dword [ebp - 8]
pop ecx
jne 0x30045886
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x300458c1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043ce4
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.30043c98
add esp, 0x18
test eax, eax
je 0x300458b2
cmp dword [ebp - 4], esi
jne 0x300458c1
push esi
push 0x72766c73
call fcn.30043574
xor edi, edi
jmp 0x300458d7
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.30044626
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x300d2c3c], esi
push esi
je 0x30045919
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 0x30045904
cmp dword [ebp - 0x14], edi
jne 0x30045904
xor edi, edi
inc edi
jmp 0x30045906
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30043c4f
add esp, 0xc
jmp 0x30045923
push 0x74697970
call fcn.30043574
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 0x3004594f
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.30043ce4
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x30045955
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.3006a003
mov eax, dword [0x3002226c]
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.30044593
test eax, eax
pop ecx
pop ecx
je 0x30045a10
push ebx
push 0x300056dc
call fcn.3005bada
mov ebx, eax
test ebx, ebx
je 0x30045a0f
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.3005b3d6
push ebx
call fcn.300432ac
call fcn.300457d1
test eax, eax
je 0x30045a0d
call fcn.3004572a
test eax, eax
je 0x30045a0d
call fcn.300456e9
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.3004486c
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.300457e4
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x300459fd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30045a0d
push 0x104
push 0x300d2a1c
push eax
call fcn.3005b354
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300696c7
leave
ret

Function at 0x3004603f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x300d52b8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30046083
call ebx
test eax, eax
jns 0x30046079
push 0x300057d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x300057c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x300d52b4], eax
mov dword [0x300d52b8], 1
mov eax, dword [0x300d52b4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x3004609f
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x300460cf
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x300460c5
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x300460ba
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300460bf
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x300460ce
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 0x30046293
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3002226c]
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 0x300462d3
xor eax, eax
jmp 0x30046440
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.30047d46
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 0x30046338
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 0x300463d4
test edi, edi
je 0x300463d4
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30047bc4
test eax, eax
je 0x300463ba
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.30047cfe
cmp dword [ebp - 0x40c], 5
jne 0x300463ba
cmp dword [ebp - 0x418], 0
jne 0x300463ba
mov dword [ebp - 0x418], ebx
jmp 0x30046313
cmp dword [esi], 0
je 0x300463d4
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 0x300463e1
cmp eax, 0xffffffff
jne 0x30046400
cmp edi, ecx
je 0x300463f0
push ecx
push 0x787a6c65
call fcn.30043574
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 0x30046428
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x30046419
mov eax, 0x30002a15
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.3005b376
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x3004643a
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.300696c7
leave
ret 0x1c
Function at 0x3004a39f
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.30064cd0
mov esi, eax
cmp esi, ebx
je 0x3004a40f
push esi
lea eax, [ebp - 4]
push eax
call fcn.30043358
test eax, eax
je 0x3004a40f
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.30064cd6
test eax, eax
je 0x3004a407
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30003970
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x3004a407
cmp dword [ebp - 8], ebx
je 0x3004a407
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.300432ac
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x3004b591
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 0x3004b5a9
xor eax, eax
jmp 0x3004b696
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x3004b5b9
cmp dword [0x300d573c], edi
je 0x3004b5ca
cmp dword [0x300d6744], edi
mov dword [ebp - 4], edi
je 0x3004b5d1
test byte [ebx + 0xc], 0x10
jne 0x3004b5d1
xor eax, eax
jmp 0x3004b695
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.3004ad9c
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x3004b64f
mov eax, dword [ebx]
cmp eax, edi
je 0x3004b5fc
push eax
call fcn.3005bada
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x3004b608
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 0x3004b625
push dword [ebp - 4]
call fcn.300432ac
push esi
call fcn.3004a9ba
test eax, eax
pop ecx
je 0x3004b66a
push 0x796d7468
push edi
call fcn.300435c8
push dword [ebp + 8]
mov ecx, 0x300d5748
call fcn.3004af3a
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.3004affc
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x3004b5ed
jmp 0x3004b677
push dword [ebp + 8]
mov ecx, 0x300d5748
call fcn.3004aeb8
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x300d5744], edi
mov esi, eax
je 0x3004b693
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3004ba38
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 0x3004ba4e
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 0x3004ba80
cmp dword [ebp + 0xc], 1
je 0x3004ba7e
cmp dword [ebp + 0xc], ebx
jne 0x3004ba80
mov edi, ebx
push edi
call fcn.3004a9ba
test eax, eax
pop ecx
je 0x3004baa6
push 0x796d746b
push 0
call fcn.300435c8
push dword [ebp + 8]
mov ecx, 0x300d5748
call fcn.3004af3a
jmp 0x3004bb05
test edi, edi
jne 0x3004baf8
cmp dword [ebp + 0xc], ebx
je 0x3004bab5
cmp dword [ebp + 0xc], 1
jne 0x3004bac0
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3004baca
cmp byte [ebp + 0x1c], bl
jne 0x3004bae3
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.3004aa11
test eax, eax
pop ecx
pop ecx
jne 0x3004bae3
mov edi, 0xea
jmp 0x3004baf8
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3004a9e7
test eax, eax
pop ecx
pop ecx
jne 0x3004baf8
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x300d5748
call fcn.3004aeb8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3004bb0c
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 0x3004bb27
mov eax, 0xa0
jmp 0x3004bc74
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3004bb39
push eax
call fcn.3005bada
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3004bb53
cmp dword [0x300d573c], esi
je 0x3004bb61
mov dword [ebp - 0x10], 2
jmp 0x3004bb6e
cmp dword [ebp + 8], 1
jne 0x3004bb61
cmp dword [0x300d6744], esi
je 0x3004bb6b
test byte [ebx + 0xc], 0x10
je 0x3004bc33
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.3004ad9c
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3004bbd3
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 0x3004bb93
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.3004a9ba
test eax, eax
pop ecx
je 0x3004bbef
push 0x796d746c
xor edi, edi
push edi
call fcn.300435c8
push esi
mov ecx, 0x300d5748
call fcn.3004af3a
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.3004affc
add esp, 0x14
test eax, eax
je 0x3004bb7f
jmp 0x3004bc1e
push esi
mov ecx, 0x300d5748
call fcn.3004aeb8
test edi, edi
jne 0x3004bc1e
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3004bc7a
cmp dword [ebp - 0x18], 3
jne 0x3004bc1e
cmp dword [ebp - 4], 4
jne 0x3004bc1e
and al, 0xf
cmp al, 4
je 0x3004bc7a
xor esi, esi
cmp dword [0x300d5744], esi
je 0x3004bc33
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3004bb3d
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.3004aaad
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3004bc69
push dword [ebp - 0xc]
call fcn.300432ac
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 [0x300d5744], 0
je 0x3004bc5b
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3004bc5b
Function at 0x3004bf86
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 0x3004bf9e
xor eax, eax
jmp 0x3004c115
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x3004bfb6
push eax
call fcn.3005bada
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x3004bfd3
cmp dword [0x300d573c], ebx
je 0x3004bfe1
mov dword [ebp - 0x1c], 2
jmp 0x3004bfee
cmp dword [ebp - 8], 1
jne 0x3004bfe1
cmp dword [0x300d6744], ebx
je 0x3004bfeb
test byte [esi + 0xc], 0x10
je 0x3004c0af
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.3004ad9c
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x3004c077
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x3004c016
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 0x3004c041
cmp dword [ebp - 0x14], 1
je 0x3004c03e
cmp dword [ebp - 0x14], 2
jne 0x3004c041
push 2
pop edi
push edi
call fcn.3004a9ba
test eax, eax
pop ecx
je 0x3004c08a
push 0x796d746f
push ebx
call fcn.300435c8
push esi
mov ecx, 0x300d5748
call fcn.3004af3a
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.3004affc
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x3004c00a
jmp 0x3004c099
push esi
mov ecx, 0x300d5748
call fcn.3004aeb8
cmp edi, ebx
je 0x3004c0be
cmp dword [0x300d5744], ebx
je 0x3004c0ac
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x3004bfba
jmp 0x3004c0d1
cmp dword [0x300d5744], ebx
je 0x3004c0d5
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x3004c0f5
cmp dword [ebp - 0x14], 2
je 0x3004c0e7
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x3004c0f5
push dword [ebp - 4]
call fcn.3004abdb
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x3004c102
push dword [ebp - 0x18]
call fcn.300432ac
cmp edi, ebx
pop edi
je 0x3004c112
push dword [ebp + 8]
call fcn.3004abf6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4