joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba0a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4ba0d3
mov eax, 0x529860
push eax
push eax
push 0
push 0
call fcn.004b853a
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x4bae15
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4bb2de
Capabilities:
Check mutex on windows

Disassembly:
push 0xa4
mov eax, 0x50f38e
call fcn.004bdbd9
mov esi, ecx
mov dword [ebp - 0xa0], esi
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
push 0x41
lea eax, [ebp - 0x98]
push eax
call fcn.004bbaaf
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x4bb42a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4bb357
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.004bb90e
test eax, eax
je 0x4bb38c
mov dword [esi], eax
mov eax, dword [esi]
inc dword [eax + 0x5bc]
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x4bb42a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4bb42a
push 0x5c0
call fcn.004bb5e9
pop ecx
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4bb3af
push edi
mov ecx, eax
call fcn.004bb46b
jmp 0x4bb3b1
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [esi], eax
test eax, eax
je 0x4bb432
xor ebx, ebx
inc ebx
mov dword [ebp - 0xb0], ebx
push eax
call fcn.004bba4e
pop ecx
test eax, eax
jne 0x4bb365
mov dword [ebp - 0xa8], 3
push 0x54f970
lea eax, [ebp - 0xa8]
jmp 0x4bb447
mov eax, esi
call fcn.004bdb26
ret
mov dword [ebp - 0xa4], 1
push 0x54f970
lea eax, [ebp - 0xa4]
push eax
call fcn.004dd737
int3

Function at 0x4bb46b
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x50f3c1
call fcn.004bdb37
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.004bb2af
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4bb4b7
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004bdb00
ret 4
push 0x54f970
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.004dd737
int3
Function at 0x4bb683
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.004bb817
mov edi, eax
test edi, edi
je 0x4bb70e
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x4bb6be
mov esi, edi
jmp 0x4bb6fa
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x4bb6f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4bb6e6
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.004bb7b2
jmp 0x4bb6fa
push 0x51b530
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4bb6fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.004bb817
mov edi, eax
test edi, edi
jne 0x4bb6b3
test esi, esi
jne 0x4bb723
mov ecx, dword [ebx]
add ecx, 8
call fcn.004bb99f
mov esi, eax
test esi, esi
je 0x4bb723
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4be760
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x4be964
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4be964
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004dc680
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2e4]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4be939
xor edi, edi
mov dword [ebp - 0x2d8], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4be928
lea eax, [ebp - 0x2e8]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2e4]
call esi
test eax, eax
jne 0x4be8f2
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2e0], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0
push 0x51b4b4
push dword [ebp - 0x2e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4be8ea
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004dc680
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004be980
add esp, 0x18
test eax, eax
je 0x4be8ea
cmp byte [ebp - 0x68], 0
je 0x4be8ac
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4be8ea
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x4be8d9
mov al, byte [esi + ecx]
test al, al
je 0x4be8d9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4be8c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e8]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4be800
push dword [ebp - 0x2e4]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x4be964
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.0048f610
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x4bec00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5651c0]
mov byte [ebp - 0x20d], 0x40
push ebx
mov ebx, dword [ebp + 8]
test ecx, ecx
jne 0x4beced
push 0x208
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0xf5
ja 0x4becce
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4bec66
mov eax, dword [0x52980c]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4bec82
mov ecx, 6
lea eax, [ebp - 0x20c]
mov esi, str.Netapi32.dll
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
test eax, eax
je 0x4becce
push str.Netbios
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x5651c0]
test eax, eax
cmovne ecx, eax
mov dword [0x5651c0], ecx
jmp 0x4becd4
mov ecx, dword [0x5651c0]
test ecx, ecx
jne 0x4beced
mov al, byte [ebp - 0x20d]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
push ebx
call ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret

Function at 0x4bf400
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.004bd1d0
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x4bf562
cmp dword [ebp + 0xc], 0
je 0x4bf562
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push 0x51b420
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0048f680
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bf545
push 0x2710
lea eax, [ebp - 0x2bfc]
mov dword [ebp - 0x2c00], 0
push 0
push eax
mov dword [ebp - 0x2c04], 0
mov dword [ebp - 0x2c0c], 0
mov dword [ebp - 0x2c08], 0
call fcn.004dc680
add esp, 0xc
lea eax, [ebp - 0x2c00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c0c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bf53a
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.004dc680
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.004c04b0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.0048f610
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4bf54f
inc esi
cmp esi, 0x10
jl 0x4bf440
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x4bf580
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.004dc680
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004beaa0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4bf5ea
mov al, byte [edi + ecx]
test al, al
je 0x4bf5ea
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4bf5d1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x4bf60b
inc eax
sub ecx, 1
jne 0x4bf600
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x4bf660
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x4bf655
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x4bf654
mov bl, byte [edi + ecx]
test bl, bl
je 0x4bf654
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x4bf640
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.004dc680
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x51b6c4
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4bf71a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4bf6e4
test cl, cl
je 0x4bf6e0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4bf6e4
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf6c4
xor eax, eax
jmp 0x4bf6e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bf71a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf6f6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf723
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x51b6c4
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x4c26a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f653
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x5583f8]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c2590
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x4c2881
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004dc680
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x51b858
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c2881
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x4c2775
cmp eax, 2
jne 0x4c2881
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4c2796
test cl, 1
jne 0x4c2881
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4c279c
jmp 0x4c2881
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4c2881
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x4c28ac
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.004c0b10
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x51b860
push eax
call fcn.004c2ec0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.004c1090
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x4c2865
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c2806
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.004c28c0
push dword [0x558400]
lea eax, [ebp - 0x74]
push dword [0x5583fc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4c2842
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c285e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4c2883
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c2881
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x4c288e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004818f0
int3
Function at 0x4c29a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c29b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4c29c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c29c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c29f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f688
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x558384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x202
push dword [0x5583f8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c2590
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x4c2ad8
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c2a8e
mov ecx, dword [edi]
test ecx, ecx
je 0x4c2af9
push ecx
push eax
call fcn.004dfa3c
add esp, 8
test eax, eax
je 0x4c2a8e
push 1
push dword [ebx]
lea ecx, [ebp - 0x18]
push str.m2_old
call fcn.004c29a0
mov edx, dword [edi]
test edx, edx
jne 0x4c2aa2
mov eax, 0xd
xor ebx, ebx
test eax, eax
sete bl
jmp 0x4c2ada
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2aa7
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x51b858
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x4c2ada
xor ebx, ebx
test esi, esi
je 0x4c2ae5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004818f0
int3
Function at 0x4c4310
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
push 8
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov dword [ebp - 0x444], ecx
mov dword [eax], 0
mov dword [ecx], 0
lea ecx, [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
call fcn.004c2590
mov esi, dword [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4c4398
xor esi, esi
jmp 0x4c453b
push edi
xor edi, edi
jmp 0x4c43a0
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x418], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4c4535
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x430], 0
test eax, eax
jne 0x4c44c4
mov esi, dword [ebp - 0x41c]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x434], esi
push eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x41c], 0x208
push eax
push 0
push str.NetCfgInstanceId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c44ad
mov eax, dword [ebp - 0x438]
cmp eax, 1
je 0x4c4465
cmp eax, 2
jne 0x4c44ad
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x4c4485
test cl, 1
jne 0x4c44ad
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4c448e
jmp 0x4c44ad
xor eax, eax
mov word [ebp - 0x20c], ax
push dword [ebp - 0x43c]
lea eax, [ebp - 0x20c]
shr ecx, 1
push eax
mov dword [ebp - 0x418], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4c44d3
test esi, esi
je 0x4c44be
push esi
call ebx
mov dword [ebp - 0x434], 0
mov esi, dword [ebp - 0x428]
inc edi
cmp edi, 0x100
jl 0x4c43a0
jmp 0x4c4535
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push str.BusType
lea ecx, [ebp - 0x434]
call fcn.004c47c0
test eax, eax
jne 0x4c452e
lea eax, [ebp - 0x20c]
push eax
call fcn.004e67c2
add esp, 4
cmp eax, 5
jne 0x4c452e
mov eax, dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
mov dword [eax], 1
call fcn.004c45c0
add esp, 8
test esi, esi
je 0x4c4535
push esi
call ebx
mov esi, 1
pop edi
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4c4548
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret
Function at 0x4c45c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.DriverDesc
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4c4646
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x4c4623
cmp eax, 2
jne 0x4c4646
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4c46f0
test al, 1
jne 0x4c4646
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4c46f9
cmp dword [edi], 0
jne 0x4c4755
push 1
push str.NDIInterfaces
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call fcn.004c2590
mov esi, dword [ebp - 0x220]
test eax, eax
jne 0x4c474a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.LowerRange
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c474a
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x4c46d3
cmp eax, 2
jne 0x4c474a
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4c4717
test al, 1
jne 0x4c474a
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4c4720
jmp 0x4c474a
xor eax, eax
mov word [ebp - 0x20c], ax
push str.Wireless
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4c4646
mov dword [edi], 1
jmp 0x4c4755
xor eax, eax
mov word [ebp - 0x20c], ax
push str.wlan
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4c4744
push str.vwifi
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4c474a
mov dword [edi], 1
test esi, esi
je 0x4c4755
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret

Function at 0x4c47c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4831
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4c47ff
cmp eax, 2
jne 0x4c481b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4c482b
test ecx, ecx
je 0x4c4826
test cl, 1
jne 0x4c481b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4c482b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c7236
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4fcbbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fca3a

Function at 0x4fe227
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fdb95

Function at 0x4fe232
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fddd0