joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af9cc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov esi, edx
mov edi, eax
cmp dword [esi + 8], 1
jne 0x4afb62
cmp dword [esi], 0x501
jne 0x4af9f0
mov ebx, 0x545420
jmp 0x4af9f5
mov ebx, 0x5443fc
mov dword [esp], 0x10
mov eax, 0x1020
push esp
lea edx, [esp + 8]
push edx
push 0
push eax
lea eax, [ebx + 4]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x4afa68
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2745
je 0x4afa33
cmp eax, 0x274a
jne 0x4afb62
inc dword [0x53e91c]
cmp dword [0x53e91c], 0x64
jle 0x4afb62
xor eax, eax
mov dword [0x53e91c], eax
push 0
push 0
push 0x635
mov eax, edi
call fcn.0045deb8
push eax
call sub.user32.dll_PostMessageA
jmp 0x4afb62
xor edx, edx
mov dword [0x53e91c], edx
mov edx, dword [0x541dac]
cmp byte [edx], 0
jne 0x4afa91
mov dword [0x5443fc], 0xffffffff
mov dword [0x545420], 0xffffffff
jmp 0x4afaa1
mov edx, dword [esp + 8]
cmp edx, dword [0x5443ac]
jne 0x4af9e1
test eax, eax
jle 0x4afb62
lea ebp, [ebx + 4]
cmp eax, 0x20
jl 0x4af9e1
cmp dword [ebp], 0x13572469
jne 0x4af9e1
cmp eax, dword [ebp + 4]
jl 0x4af9e1
mov edx, dword [ebp + 4]
mov eax, ebp
call fcn.0047119c
test al, 0xff
jne 0x4afb62
mov eax, dword [ebp + 8]
mov edx, eax
sub edx, dword [ebx]
test edx, edx
jle 0x4afb62
mov dword [ebx], eax
mov al, byte [ebp + 0xd]
sub al, 0xa
je 0x4afafa
sub al, 2
je 0x4afb0d
jmp 0x4af9e1
mov eax, dword [0x5415a0]
mov eax, dword [eax]
mov edx, ebp
call fcn.004e0b84
jmp 0x4af9e1
cmp byte [ebp + 0xc], 0xd2
je 0x4afb21
mov eax, dword [0x541dac]
cmp byte [eax], 4
jne 0x4af9e1
add dword [0x53e8fc], 1
adc dword [0x53e900], 0
mov eax, dword [0x54187c]
cmp dword [eax + 4], 0
jne 0x4afb45
cmp dword [eax], 0
jbe 0x4af9e1
jmp 0x4afb4b
jle 0x4af9e1
mov eax, dword [0x5415a0]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
mov edx, ebp
call fcn.004de53c
jmp 0x4af9e1
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4afb8c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov edi, ecx
mov esi, edx
mov dword [esp], eax
cmp dword [edi + 8], 1
jne 0x4afd20
mov dword [esp + 4], 0x10
mov eax, 0x1020
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push eax
lea eax, [esi + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x4afc1e
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2745
je 0x4afbe7
cmp eax, 0x274a
jne 0x4afd20
inc dword [0x53e91c]
cmp dword [0x53e91c], 0x64
jle 0x4afd20
xor eax, eax
mov dword [0x53e91c], eax
push 0
push 0
push 0x635
mov eax, dword [esp + 0xc]
call fcn.0045deb8
push eax
call sub.user32.dll_PostMessageA
jmp 0x4afd20
xor edx, edx
mov dword [0x53e91c], edx
mov edx, dword [0x541dac]
cmp byte [edx], 0
jne 0x4afc4d
mov edx, dword [0x5443b4]
mov dword [edx + 0x10], 0xffffffff
mov edx, dword [0x5443b8]
mov dword [edx + 0x10], 0xffffffff
jmp 0x4afc5d
mov edx, dword [esp + 0xc]
cmp edx, dword [0x5443ac]
jne 0x4afba4
test eax, eax
jle 0x4afd20
lea ebx, [esi + 0x14]
cmp eax, 8
jl 0x4afba4
cmp dword [ebx], 0x13572469
jne 0x4afba4
mov ebp, dword [ebx + 4]
cmp eax, ebp
jl 0x4afba4
mov edx, ebp
mov eax, ebx
call fcn.0047119c
test al, 0xff
jne 0x4afd20
mov eax, dword [ebx + 8]
mov edx, eax
sub edx, dword [esi + 0x10]
test edx, edx
jle 0x4afd20
mov dword [esi + 0x10], eax
mov al, byte [ebx + 0xd]
sub al, 0xa
je 0x4afcb8
sub al, 2
je 0x4afccb
jmp 0x4afba4
mov eax, dword [0x5415a0]
mov eax, dword [eax]
mov edx, ebx
call fcn.004e0b84
jmp 0x4afba4
cmp byte [ebx + 0xc], 0xd2
je 0x4afcdf
mov eax, dword [0x541dac]
cmp byte [eax], 4
jne 0x4afba4
add dword [0x53e8fc], 1
adc dword [0x53e900], 0
mov eax, dword [0x54187c]
cmp dword [eax + 4], 0
jne 0x4afd03
cmp dword [eax], 0
jbe 0x4afba4
jmp 0x4afd09
jle 0x4afba4
mov eax, dword [0x5415a0]
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
mov edx, ebx
call fcn.004de53c
jmp 0x4afba4
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4aff2c
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4b00a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0xc], 0xffffffff
jne 0x4b0090
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.0040460c
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0xffffffff
cmp byte [0x53e918], 0
jne 0x4affa0
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4b0090
mov byte [0x53e918], 1
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
test ebx, ebx
jl 0x4b0090
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
jl 0x4b0090
mov word [ebp - 0x28], 2
mov ax, word [esi + 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
xor eax, eax
mov dword [ebp - 0x24], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.wsock32.dll_bind
test eax, eax
jge 0x4b000b
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4b0090
mov eax, dword [esi + 4]
call fcn.00404a84
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0x10], eax
push 8
lea eax, [ebp - 0x14]
push eax
push 5
push 0
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
jge 0x4b0042
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4b0090
mov dword [ebp - 0x18], 0x20000
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1002
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4b006a
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4b0090
push 0x23
push edi
mov eax, dword [0x54439c]
call fcn.0045deb8
push eax
push ebx
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x4b0089
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4b0090
mov dword [esi + 0xc], ebx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b00ad
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4b1448
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 0x4b1450
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b15b4
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 0x4b1599
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 0x4b1591
test ebx, ebx
je 0x4b1591
test esi, esi
jne 0x4b1586
lea edx, [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00409fe8
lea edx, [ebp - 0x18]
mov eax, 0x15
call fcn.004ab980
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov eax, 0x17
call fcn.004ab980
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040494c
lea ecx, [ebp - 0x20]
mov edx, 0x4b15d0
mov eax, dword [ebp - 0x14]
call fcn.0046c5d0
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 0x4b1559
mov byte [ebp - 1], 1
jmp 0x4b1591
dec esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4b14b9
mov eax, dword [ebp - 8]
call fcn.004027dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b15bb
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004045dc
ret

Function at 0x4b1ae0
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 0x4b1b5b
cmp byte [ebp + 0xc], 0
je 0x4b1b59
jmp 0x4b1b53
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4b1b59
cmp byte [esi + 0xd], 0
je 0x4b1b41
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b377c
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 0x4b3968
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 4]
call fcn.0046de9c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b3940
mov eax, ebx
call fcn.004721ec
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 8]
call fcn.0046de9c
cmp eax, 0xffffffff
je 0x4b37f4
call fcn.004721ec
fstp qword [ebp - 0x20]
wait
jmp 0x4b37fc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
fld qword [ebp - 0x18]
fsub qword [ebp - 0x20]
fabs
fstp qword [0x546654]
wait
fld xword [0x4b397c]
fcomp qword [0x546654]
fnstsw ax
sahf
jae 0x4b3853
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 0x4b3940
mov byte [ebp - 0xa], 2
jmp 0x4b3940
cmp byte [ebp - 9], 0
je 0x4b393c
mov dl, 1
mov eax, dword [0x414f30]
call fcn.0040377c
mov esi, eax
mov dl, 1
mov eax, dword [0x414f30]
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.0046dfb8
test al, al
je 0x4b3928
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.0046dfb8
test al, al
je 0x4b3928
mov eax, esi
call fcn.00419764
push edx
push eax
mov eax, edi
call fcn.00419764
cmp edx, dword [esp + 4]
jne 0x4b38cc
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4b38e8
mov eax, esi
call fcn.00419764
mov ecx, eax
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
call fcn.00471f28
test eax, eax
je 0x4b3922
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.0046df00
test al, al
je 0x4b391c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x30]
mov edx, ebx
call fcn.00470c64
mov byte [ebp - 0xa], 2
jmp 0x4b392c
mov byte [ebp - 0xa], 0
jmp 0x4b392c
mov byte [ebp - 0xa], 1
jmp 0x4b392c
mov byte [ebp - 0xa], 0
mov eax, esi
call fcn.004037ac
mov eax, edi
call fcn.004037ac
jmp 0x4b3940
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b396f
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404d08
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4b506c
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 0x4b5206
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x53e964]
cmp eax, 1
sete byte [ebp - 0xb]
test eax, eax
jne 0x4b51e8
mov dword [0x53e964], 0xffffffff
mov byte [0x53e968], 0
call sub.winmm.dll_waveInGetNumDevs
mov ebx, eax
test ebx, ebx
jle 0x4b51e8
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1d]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp - 0xa]
call fcn.004b5024
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00404fc8
je 0x4b5149
mov edi, 2
dec ebx
test ebx, ebx
jl 0x4b5167
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 0x4b5143
push 0x30000
push 0
push 0x4b4fdc
lea eax, [ebp - 0x1d]
push eax
push esi
push 0x5467d4
call sub.winmm.dll_waveInOpen
mov edi, eax
jmp 0x4b5167
inc esi
dec ebx
jne 0x4b50fb
jmp 0x4b5167
push 0x30000
push 0
push 0x4b4fdc
lea eax, [ebp - 0x1d]
push eax
push 0xffffffffffffffff
push 0x5467d4
call sub.winmm.dll_waveInOpen
mov edi, eax
test edi, edi
jne 0x4b51e8
mov eax, dword [ebp - 4]
mov dword [0x53e974], eax
mov esi, 5
mov ebx, 0x5467dc
mov edi, 0x546878
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 [0x5467d4]
push eax
call sub.winmm.dll_waveInPrepareHeader
test eax, eax
jne 0x4b51e8
push 0x20
lea eax, [ebx - 4]
push eax
mov eax, dword [0x5467d4]
push eax
call sub.winmm.dll_waveInAddBuffer
test eax, eax
jne 0x4b51e8
add edi, 0x780
add ebx, 0x20
dec esi
jne 0x4b5182
mov dword [0x53e964], 1
mov byte [ebp - 0xb], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b520d
lea eax, [ebp - 0x78]
call fcn.00404cf0
lea eax, [ebp - 8]
call fcn.00404cf0
ret

Function at 0x4b58cc
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 0x4b7944
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x54157c]
mov dword [eax], 0x3ef
mov eax, dword [ebx + 0x314]
test eax, eax
je 0x4b7967
cmp byte [eax + 0x57], 0
jne 0x4b7967
call fcn.004460d4
mov eax, dword [0x541b3c]
mov eax, dword [eax]
call fcn.0044900c
push 0
mov eax, dword [0x541b3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004b7f14
mov eax, dword [0x54157c]
xor edx, edx
mov dword [eax], edx
pop ebx
ret
Function at 0x4b86d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x54157c]
mov dword [eax], 0x3f6
cmp dword [0x53e9b8], 0
jne 0x4b8704
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b4ba8]
call fcn.00441e98
mov dword [0x53e9b8], eax
mov eax, dword [0x53e9b8]
call fcn.004b4df8
mov eax, dword [0x53e9b8]
call fcn.004460d4
mov eax, dword [0x53e9b8]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xc0]
mov eax, dword [0x541b3c]
mov eax, dword [eax]
call fcn.0044900c
push 0
mov eax, dword [0x541b3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004b7f14
mov eax, dword [0x54157c]
xor edx, edx
mov dword [eax], edx
pop ebx
ret

Function at 0x4b8b64
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 [0x54157c]
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 0x4b8bf6
cmp byte [ebp - 1], 0
je 0x4b8bf4
jmp 0x4b8beb
mov eax, dword [0x541b3c]
mov eax, dword [eax]
call fcn.00449374
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4b8bf4
cmp byte [0x53e99c], 0
je 0x4b8bcd
mov bl, 1
mov eax, dword [0x54157c]
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 0x4c21d0
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 0x4c21d8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c23ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4c23e0
mov eax, esi
call fcn.004bff60
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040460c
lea ecx, [ebp - 0x10]
mov edx, 0x4c23f4
mov eax, esi
call fcn.004bff60
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040460c
lea ecx, [ebp - 0x14]
mov edx, 0x4c240c
mov eax, esi
call fcn.004bff60
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040460c
lea ecx, [ebp - 0x18]
mov edx, 0x4c2428
mov eax, esi
call fcn.004bff60
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040460c
lea ecx, [ebp - 0x1c]
mov edx, 0x4c2444
mov eax, esi
call fcn.004bff60
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040460c
lea ecx, [ebp - 0x24]
mov edx, 0x4c245c
mov eax, esi
call fcn.004bff60
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, 0x4c2474
mov eax, esi
call fcn.004bff60
mov eax, dword [ebp - 0x28]
call fcn.004bf078
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4c2484
mov eax, esi
call fcn.004bff60
mov eax, dword [ebp - 0x2c]
call fcn.004bf078
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4c249c
mov eax, esi
call fcn.004bff60
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004094cc
inc eax
je 0x4c236d
lea ecx, [ebp - 0x34]
mov edx, 0x4c249c
mov eax, esi
call fcn.004bff60
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.0040adec
fstp qword [ebp - 0x3c]
wait
call fcn.0040b1b0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4c2388
lea ecx, [ebp - 0x40]
mov edx, 0x4c249c
mov eax, esi
call fcn.004bff60
mov eax, dword [ebp - 0x40]
call fcn.004bf078
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4c24ac
mov eax, esi
call fcn.004bff60
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 0x4c23d1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004045dc
ret
Function at 0x4ce594
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 0x4ce5ee
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004ce584
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bdce4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bd8e4
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 0x4ce5f5
lea eax, [ebp - 4]
call fcn.004045b8
ret

Function at 0x4d1aa4
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 0x4d1b6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x4d1938]
call fcn.0041f360
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.0041f6ac
jmp 0x4d1b34
call sub.kernel32.dll_GetTickCount
sub eax, edi
lea edx, [esi + 0x7d0]
cmp eax, edx
ja 0x4d1b3a
cmp byte [ebp + 8], 0
jne 0x4d1b2d
mov eax, dword [0x541b3c]
mov eax, dword [eax]
call fcn.00449374
push 1
call sub.kernel32.dll_Sleep
cmp byte [ebx + 0x3c], 1
je 0x4d1b0a
cmp byte [ebx + 0x3c], 2
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x4d1b53
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 0x4d1b74
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4d33c0
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, 0x4d35e4
mov edx, 0x4d35e8
mov eax, esi
call fcn.004d30b8
test al, al
jne 0x4d33f4
xor eax, eax
jmp 0x4d35d8
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 [0x53f21c]
push eax
push 0
call sub.user32.dll_EnumDisplaySettingsA
mov dword [esp + 0xd4], 0x1c0000
test ebx, ebx
je 0x4d3478
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, 0x4d35f8
mov eax, esi
call fcn.004d32d4
mov ebx, eax
test ebx, ebx
jne 0x4d34a4
xor eax, eax
jmp 0x4d35d8
push 0x4d3604
push ebx
call sub.advapi32.dll_RegDeleteValueA
push 0x4d3618
push ebx
call sub.advapi32.dll_RegDeleteValueA
test ebp, ebp
je 0x4d34c7
mov dword [esp], 3
jmp 0x4d34cc
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d3628
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d34ed
xor eax, eax
jmp 0x4d35d8
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d363c
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d3515
xor eax, eax
jmp 0x4d35d8
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4d3658
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d353d
xor eax, eax
jmp 0x4d35d8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov ebp, eax
xor edi, edi
test ebp, ebp
je 0x4d356a
push 0x2000000
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov edi, eax
test edi, edi
je 0x4d356a
push edi
call sub.user32.dll_SetThreadDesktop
cmp dword [esp + 0x114], 0x18
jne 0x4d357f
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 0x4d35d0
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