joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b11e8
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b11f0
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b1354
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4b1339
mov eax, dword [ebp - 0xc]
call fcn.00408d98
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4b1331
test ebx, ebx
je 0x4b1331
test esi, esi
jne 0x4b1326
lea edx, [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00409f50
lea edx, [ebp - 0x18]
mov eax, 0x15
call fcn.004ab720
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov eax, 0x17
call fcn.004ab720
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040494c
lea ecx, [ebp - 0x20]
mov edx, 0x4b1370
mov eax, dword [ebp - 0x14]
call fcn.0046c514
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.0040460c
lea eax, [edi + 4]
lea edx, [ebx + 0x1b0]
mov ecx, 0x10
call fcn.00404820
lea eax, [edi + 8]
lea edx, [ebx + 0x1c0]
mov ecx, 0x10
call fcn.00404820
lea eax, [edi + 0xc]
lea edx, [ebx + 0x1d8]
mov ecx, 0x10
call fcn.00404820
lea eax, [edi + 0x10]
call fcn.004045b8
xor esi, esi
lea ecx, [ebp - 0x24]
xor eax, eax
mov al, byte [ebx + esi + 0x194]
mov edx, 2
call fcn.00409454
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x10]
call fcn.00404894
inc esi
cmp esi, 6
jne 0x4b12f9
mov byte [ebp - 1], 1
jmp 0x4b1331
dec esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4b1259
mov eax, dword [ebp - 8]
call fcn.004027dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b135b
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004045dc
ret

Function at 0x4b1880
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403098
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push edi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b18fb
cmp byte [ebp + 0xc], 0
je 0x4b18f9
jmp 0x4b18f3
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4b18f9
cmp byte [esi + 0xd], 0
je 0x4b18e1
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b3644
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4b3830
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 4]
call fcn.0046dde0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b3808
mov eax, ebx
call fcn.00472080
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 8]
call fcn.0046dde0
cmp eax, 0xffffffff
je 0x4b36bc
call fcn.00472080
fstp qword [ebp - 0x20]
wait
jmp 0x4b36c4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
fld qword [ebp - 0x18]
fsub qword [ebp - 0x20]
fabs
fstp qword [0x543654]
wait
fld xword [0x4b3844]
fcomp qword [0x543654]
fnstsw ax
sahf
jae 0x4b371b
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0040986c
push 0
lea eax, [ebp - 8]
call fcn.00404adc
push eax
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4b3808
mov byte [ebp - 0xa], 2
jmp 0x4b3808
cmp byte [ebp - 9], 0
je 0x4b3804
mov dl, 1
mov eax, dword [0x414e98]
call fcn.0040377c
mov esi, eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.0040377c
mov edi, eax
push 0xa
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.00404e90
mov eax, dword [ebp - 0x24]
push eax
push esi
call fcn.0046defc
test al, al
je 0x4b37f0
push 0xa
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.0046defc
test al, al
je 0x4b37f0
mov eax, esi
call fcn.004196cc
push edx
push eax
mov eax, edi
call fcn.004196cc
cmp edx, dword [esp + 4]
jne 0x4b3794
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4b37b0
mov eax, esi
call fcn.004196cc
mov ecx, eax
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
call fcn.00471dbc
test eax, eax
je 0x4b37ea
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.0046de44
test al, al
je 0x4b37e4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x30]
mov edx, ebx
call fcn.00470ba8
mov byte [ebp - 0xa], 2
jmp 0x4b37f4
mov byte [ebp - 0xa], 0
jmp 0x4b37f4
mov byte [ebp - 0xa], 1
jmp 0x4b37f4
mov byte [ebp - 0xa], 0
mov eax, esi
call fcn.004037ac
mov eax, edi
call fcn.004037ac
jmp 0x4b3808
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3837
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404d08
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4b4f34
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.00405258
xor eax, eax
push ebp
push 0x4b50ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x53b960]
cmp eax, 1
sete byte [ebp - 0xb]
test eax, eax
jne 0x4b50b0
mov dword [0x53b960], 0xffffffff
mov byte [0x53b964], 0
call sub.winmm.dll_waveInGetNumDevs
mov ebx, eax
test ebx, ebx
jle 0x4b50b0
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1d]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp - 0xa]
call fcn.004b4eec
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00404fc8
je 0x4b5011
mov edi, 2
dec ebx
test ebx, ebx
jl 0x4b502f
inc ebx
xor esi, esi
push 0x54
lea eax, [ebp - 0x74]
push eax
push esi
call sub.winmm.dll_waveInGetDevCapsW
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x6c]
mov ecx, 0x20
call fcn.00404e74
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 8]
call fcn.00404fc8
jne 0x4b500b
push 0x30000
push 0
push 0x4b4ea4
lea eax, [ebp - 0x1d]
push eax
push esi
push 0x5437d4
call sub.winmm.dll_waveInOpen
mov edi, eax
jmp 0x4b502f
inc esi
dec ebx
jne 0x4b4fc3
jmp 0x4b502f
push 0x30000
push 0
push 0x4b4ea4
lea eax, [ebp - 0x1d]
push eax
push 0xffffffffffffffff
push 0x5437d4
call sub.winmm.dll_waveInOpen
mov edi, eax
test edi, edi
jne 0x4b50b0
mov eax, dword [ebp - 4]
mov dword [0x53b970], eax
mov esi, 5
mov ebx, 0x5437dc
mov edi, 0x543878
movzx eax, word [ebp - 0xa]
imul eax, eax, 0x780
imul dword [ebp + 0xc]
mov ecx, 0x15888
xor edx, edx
div ecx
mov dword [ebx], eax
mov eax, edi
mov dword [ebx - 4], eax
xor eax, eax
mov dword [ebx + 0xc], eax
push 0x20
lea eax, [ebx - 4]
push eax
mov eax, dword [0x5437d4]
push eax
call sub.winmm.dll_waveInPrepareHeader
test eax, eax
jne 0x4b50b0
push 0x20
lea eax, [ebx - 4]
push eax
mov eax, dword [0x5437d4]
push eax
call sub.winmm.dll_waveInAddBuffer
test eax, eax
jne 0x4b50b0
add edi, 0x780
add ebx, 0x20
dec esi
jne 0x4b504a
mov dword [0x53b960], 1
mov byte [ebp - 0xb], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b50d5
lea eax, [ebp - 0x78]
call fcn.00404cf0
lea eax, [ebp - 8]
call fcn.00404cf0
ret

Function at 0x4b5310
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push esp
push 0x208
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404e74
add esp, 0x208
pop ebx
ret

Function at 0x4b7318
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x53e554]
mov dword [eax], 0x3ef
mov eax, dword [ebx + 0x314]
test eax, eax
je 0x4b733b
cmp byte [eax + 0x57], 0
jne 0x4b733b
call fcn.00444dc0
mov eax, dword [0x53eb10]
mov eax, dword [eax]
call fcn.00447cf8
push 0
mov eax, dword [0x53eb10]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004b78b4
mov eax, dword [0x53e554]
xor edx, edx
mov dword [eax], edx
pop ebx
ret
Function at 0x4b8070
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x53e554]
mov dword [eax], 0x3f6
cmp dword [0x53b9ac], 0
jne 0x4b80a4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b4a70]
call fcn.00440b84
mov dword [0x53b9ac], eax
mov eax, dword [0x53b9ac]
call fcn.004b4cc0
mov eax, dword [0x53b9ac]
call fcn.00444dc0
mov eax, dword [0x53b9ac]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xc0]
mov eax, dword [0x53eb10]
mov eax, dword [eax]
call fcn.00447cf8
push 0
mov eax, dword [0x53eb10]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004b78b4
mov eax, dword [0x53e554]
xor edx, edx
mov dword [eax], edx
pop ebx
ret

Function at 0x4b8504
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
mov eax, dword [0x53e554]
mov dword [eax], 0x3fe
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403098
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b8596
cmp byte [ebp - 1], 0
je 0x4b8594
jmp 0x4b858b
mov eax, dword [0x53eb10]
mov eax, dword [eax]
call fcn.00448060
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4b8594
cmp byte [0x53b990], 0
je 0x4b856d
mov bl, 1
mov eax, dword [0x53e554]
xor edx, edx
mov dword [eax], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1b70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4c1b78
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c1d6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4c1d80
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040460c
lea ecx, [ebp - 0x10]
mov edx, 0x4c1d94
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040460c
lea ecx, [ebp - 0x14]
mov edx, 0x4c1dac
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040460c
lea ecx, [ebp - 0x18]
mov edx, 0x4c1dc8
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040460c
lea ecx, [ebp - 0x1c]
mov edx, 0x4c1de4
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040460c
lea ecx, [ebp - 0x24]
mov edx, 0x4c1dfc
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040906c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004094cc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4c1e14
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x28]
call fcn.004bea18
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4c1e24
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x2c]
call fcn.004bea18
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4c1e3c
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004094cc
inc eax
je 0x4c1d0d
lea ecx, [ebp - 0x34]
mov edx, 0x4c1e3c
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x34]
call fcn.00409490
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040ad54
fstp qword [ebp - 0x3c]
wait
call fcn.0040b118
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4c1d28
lea ecx, [ebp - 0x40]
mov edx, 0x4c1e3c
mov eax, esi
call fcn.004bf900
mov eax, dword [ebp - 0x40]
call fcn.004bea18
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4c1e4c
mov eax, esi
call fcn.004bf900
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040460c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1d71
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004045dc
ret
Function at 0x4cdf34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4cdf8e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004cdf24
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bd684
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bd284
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdf95
lea eax, [ebp - 4]
call fcn.004045b8
ret

Function at 0x4d1444
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4d150d
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x4d12d8]
call fcn.0041f2c8
mov ebx, eax
mov byte [ebx + 0xf], 1
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 4]
call fcn.0040460c
xor eax, eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x40], esi
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov byte [ebx + 0x3c], 1
mov byte [ebx + 0x3d], 0
mov eax, ebx
call fcn.0041f614
jmp 0x4d14d4
call sub.kernel32.dll_GetTickCount
sub eax, edi
lea edx, [esi + 0x7d0]
cmp eax, edx
ja 0x4d14da
cmp byte [ebp + 8], 0
jne 0x4d14cd
mov eax, dword [0x53eb10]
mov eax, dword [eax]
call fcn.00448060
push 1
call sub.kernel32.dll_Sleep
cmp byte [ebx + 0x3c], 1
je 0x4d14aa
cmp byte [ebx + 0x3c], 2
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x4d14f3
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x34]
call fcn.0040460c
mov byte [ebx + 0x3d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1514
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4d2d68
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov ebx, ecx
mov ebp, edx
mov esi, eax
xor edi, edi
push edi
lea eax, [esp + 8]
push eax
mov ecx, 0x4d2f8c
mov edx, 0x4d2f90
mov eax, esi
call fcn.004d2a60
test al, al
jne 0x4d2d9c
xor eax, eax
jmp 0x4d2f80
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x9c
call fcn.00407bfc
mov word [esp + 0xd0], 0x9c
mov word [esp + 0xd2], 0
lea eax, [esp + 0xac]
push eax
mov eax, dword [0x53c210]
push eax
push 0
call sub.user32.dll_EnumDisplaySettingsA
mov dword [esp + 0xd4], 0x1c0000
test ebx, ebx
je 0x4d2e20
or dword [esp + 0xd4], 0x20
mov eax, dword [ebx]
lea edx, [esp + 0xd8]
mov dword [edx], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0xd8]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x118], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x20
call fcn.00403098
mov edx, 0x4d2fa0
mov eax, esi
call fcn.004d2c7c
mov ebx, eax
test ebx, ebx
jne 0x4d2e4c
xor eax, eax
jmp 0x4d2f80
push 0x4d2fac
push ebx
call sub.advapi32.dll_RegDeleteValueA
push 0x4d2fc0
push ebx
call sub.advapi32.dll_RegDeleteValueA
test ebp, ebp
je 0x4d2e6f
mov dword [esp], 3
jmp 0x4d2e74
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d2fd0
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d2e95
xor eax, eax
jmp 0x4d2f80
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d2fe4
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d2ebd
xor eax, eax
jmp 0x4d2f80
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d3000
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d2ee5
xor eax, eax
jmp 0x4d2f80
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov ebp, eax
xor edi, edi
test ebp, ebp
je 0x4d2f12
push 0x2000000
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov edi, eax
test edi, edi
je 0x4d2f12
push edi
call sub.user32.dll_SetThreadDesktop
cmp dword [esp + 0x114], 0x18
jne 0x4d2f27
mov dword [esp + 0x114], 0x20
push 0
push 1
push 0
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_ChangeDisplaySettingsExA
push esi
push edi
lea edi, [esi + 4]
lea esi, [esp + 0xb4]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [esi + 0xa0]
lea edx, [esp + 8]
mov ecx, 0x20
call fcn.00404820
push ebp
call sub.user32.dll_SetThreadDesktop
test edi, edi
je 0x4d2f78
push edi
call sub.user32.dll_CloseDesktop
push ebx
call sub.advapi32.dll_RegCloseKey_1
mov al, 1
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d3014
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffeb8
mov ebx, eax
lea eax, [ebx + 0xa0]
call fcn.004045b8
xor esi, esi
push esi
lea eax, [esp + 8]
push eax
mov ecx, 0x4d315c
mov edx, 0x4d3160
mov eax, ebx
call fcn.004d2a60
test al, al
je 0x4d3151
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x9c
call fcn.00407bfc
mov word [esp + 0xd0], 0x9c
mov word [esp + 0xd2], 0
lea eax, [esp + 0xac]
push eax
mov eax, dword [0x53c210]
push eax
push 0
call sub.user32.dll_EnumDisplaySettingsA
mov dword [esp + 0xd4], 0x1c0000
mov byte [esp + 0xac], 0
mov edx, 0x4d3170
mov eax, ebx
call fcn.004d2c7c
mov ebx, eax
test ebx, ebx
je 0x4d3151
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d317c
push ebx
call sub.advapi32.dll_RegSetValueExA
push 0x4d3190
push ebx
call sub.advapi32.dll_RegDeleteValueA
push 0x4d31a4
push ebx
call sub.advapi32.dll_RegDeleteValueA
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov edi, eax
xor esi, esi
test edi, edi
je 0x4d310e
push 0x2000000
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov esi, eax
test esi, esi
je 0x4d310e
push esi
call sub.user32.dll_SetThreadDesktop
cmp dword [esp + 0x114], 0x18
jne 0x4d3123
mov dword [esp + 0x114], 0x20
push 0
push 1
push 0
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_ChangeDisplaySettingsExA
push edi
call sub.user32.dll_SetThreadDesktop
test esi, esi
je 0x4d314b
push esi
call sub.user32.dll_CloseDesktop
push ebx
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x148
pop edi
pop esi
pop ebx
ret
Function at 0x4d3404
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x4d362b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x53c230], eax
xor eax, eax
mov dword [0x546384], eax
xor eax, eax
mov dword [0x546388], eax
xor eax, eax
mov dword [0x54638c], eax
xor eax, eax
mov dword [0x546390], eax
xor eax, eax
mov dword [0x546380], eax
xor eax, eax
mov dword [0x546394], eax
xor eax, eax
mov dword [0x546398], eax
xor eax, eax
mov dword [0x54639c], eax
xor eax, eax
mov dword [0x5463a0], eax
cmp dword [0x53c234], 0
je 0x4d360d
push 0x4d3638
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546384], eax
push 0x4d3640
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546388], eax
push 0x4d3648
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54638c], eax
push 0x4d3650
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546390], eax
push 0x4d3658
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546380], eax
push 0x4d3660
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546394], eax
push 0x4d3670
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x546398], eax
push 0x4d367c
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54639c], eax
push 0x4d368c
mov eax, dword [0x53c234]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5463a0], eax
cmp dword [0x546384], 0
je 0x4d360d
cmp dword [0x546388], 0
je 0x4d360d
cmp dword [0x54638c], 0
je 0x4d360d
cmp dword [0x546390], 0
je 0x4d360d
cmp dword [0x546380], 0
je 0x4d360d
cmp dword [0x53c238], 0xffffffff
jne 0x4d35a9
push 0
push 1
mov edx, dword [0x53ec70]
mov edx, dword [edx]
lea eax, [ebp - 8]
mov ecx, 0x4d36a8
call fcn.004048d8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404e90
mov eax, dword [ebp - 4]
mov edx, 0x4d36bc
call fcn.0046d71c
mov dword [0x53c238], eax
cmp dword [0x53c238], 2
jge 0x4d35c1
push 0x58
push 0x6f401
call dword [0x546390]
jmp 0x4d35d5
cmp dword [0x53c238], 2
jne 0x4d35d5
push 0x51a7b0e
call dword [0x546388]
mov dword [0x53c230], 1
cmp dword [0x546394], 0
je 0x4d360d
cmp dword [0x546398], 0
je 0x4d360d
cmp dword [0x54639c], 0
je 0x4d360d
cmp dword [0x5463a0], 0
je 0x4d360d
mov dword [0x53c230], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3632
lea eax, [ebp - 8]
call fcn.004045b8
lea eax, [ebp - 4]
call fcn.00404cf0
ret
Function at 0x4d8dac
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d8f10
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53d314], 0x7d9
cmp si, 2
jne 0x4d8e06
lea eax, [ebp - 0x20]
mov edx, dword [0x53e8c0]
mov edx, dword [edx]
call fcn.00404e90
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
mov edx, 0x4d8f28
call fcn.0046da50
jmp 0x4d8e32
cmp si, 8
je 0x4d8e12
cmp si, 1
jne 0x4d8e32
lea eax, [ebp - 0x24]
mov edx, dword [0x53e8c0]
mov edx, dword [edx]
call fcn.00404e90
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x4d8f38
call fcn.0046da50
cmp dword [ebp - 0xc], 0
je 0x4d8e4d
push 1
lea eax, [ebp - 0xc]
call fcn.00404adc
push eax
call sub.kernel32.dll_WinExec
jmp 0x4d8ee5
test si, 2
jne 0x4d8e62
test si, 1
jne 0x4d8e62
test si, 8
je 0x4d8ecb
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4d8ecb
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, 0x29
call fcn.004ab720
mov eax, dword [ebp - 0x28]
call fcn.00404a84
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x4d8ed3
or si, 4
push 0
movzx eax, si
push eax
call sub.user32.dll_ExitWindowsEx
xor eax, eax
mov dword [0x53d314], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8f17
lea eax, [ebp - 0x28]
call fcn.004045b8
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404d08
lea eax, [ebp - 0xc]
call fcn.004045b8
ret