joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49369d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d52f8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004935dc
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00479900
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4936ec
cmp dword [ebp - 0x1c], 5
jb 0x493704
jmp 0x493700
cmp dword [ebp - 0x10], 1
jne 0x493704
cmp dword [ebp - 0x1c], 4
ja 0x493700
jne 0x493704
cmp dword [ebp - 0x18], 0
jbe 0x493704
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b0640
call fcn.00454d41
test eax, eax
jge 0x493725
mov byte [0x4daf78], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047f7d7
add ebp, 0x78
leave
ret

Function at 0x493b6d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4daef8], 0
push esi
jne 0x493ae0
call fcn.00493a0b
test eax, eax
je 0x493b23
mov eax, dword [0x4daef8]
cmp eax, 1
jne 0x493b01
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x493b23
pop esi
ret
push eax
call dword [0x4daf00]
test eax, eax
jne 0x493b6b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x493b27
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4daef8]
call dword [0x4daf00]
mov edi, eax
test edi, edi
je 0x493b4e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x493b6a
lea edi, [esi + 0xff0]
push esi
push dword [0x4daef8]
call dword [0x4daefc]
add esi, 0x10
cmp esi, edi
jb 0x493b54
mov eax, esi
pop edi
pop esi
ret
jmp 0x493acd

Function at 0x493bf9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d52f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x493c3a
cmp byte [ebp - 0x194], 2
jne 0x493c34
cmp byte [ebp - 0x193], 2
je 0x493c3d
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f7d7
leave
ret

Function at 0x49b8ec
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x49b91b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x49ba3c
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49ba5c
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x49ba95
cmp eax, 2
jg 0x49ba95
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b1438
push 2
push eax
call fcn.0047c772
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0047c772
add esp, 0x20
xor eax, eax
ret

Function at 0x49bc5b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x49bccd
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49bca7
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x49bccc
push ebx
push esi
call fcn.004a4e0c
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0049bbc7
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x49c37c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d52f8]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x49c499
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49c3f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a4e0c
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049bbc7
add esp, 0x18
jmp 0x49c4a0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49c42c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a4e0c
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49c3eb
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049c343
test eax, eax
jne 0x49c461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a4e0c
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49c3ec
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049c343
test eax, eax
jne 0x49c496
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a4e0c
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49c45c
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049c2f4
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f7d7
add ebp, 0x90
leave
ret

Function at 0x49c4b8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49c4fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a4e0c
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049bb54
add esp, 0x14
jmp 0x49c50a
push str.TCP_NODELAY_set_n
push esi
call fcn.0049bb54
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49c961
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x49c9b4
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49c9b4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49c98e
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49c9b4
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49c9b4
mov eax, esi
jmp 0x49c9b7
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49da89
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x49dbfb
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49dbe0
push ebx
push edi
jmp 0x49dad1
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49db74
cmp dword [esi + 0x18], 0
je 0x49db74
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49db74
push 0x10
pop edi
cmp eax, edi
jb 0x49db74
push 0x20
call dword [0x4d65dc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49db84
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4d65dc]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49db8d
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49db5b
push eax
call dword [0x4d65e8]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49db9d
cmp dword [ebp - 4], 0
jne 0x49db64
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49db6e
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x49dace
jmp 0x49dbb6
mov dword [ebp - 8], 8
jmp 0x49dbb6
push ebx
mov dword [ebp - 8], 8
call dword [0x4d65e0]
jmp 0x49dbb5
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d65e0]
push ebx
call dword [0x4d65e0]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49dbc8
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49dbdb
push dword [ebp - 4]
call fcn.0049da4d
pop ecx
mov dword [ebp - 4], esi
jmp 0x49dbef
cmp dword [ebp - 4], esi
jne 0x49dbef
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x49df4d
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4d65ec]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49dfff
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.0049de09
test eax, eax
pop ecx
pop ecx
je 0x49dfff
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004942e7
push dword [ebp + 8]
call dword [0x4d65e8]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49dfff
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49dfff
lea eax, [esi + 0x10]
push eax
push 0x49de7d
call fcn.004a5631
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49e019
call fcn.00480a1d
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049defb
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x49e01c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1b73
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4a1ba7
cmp ebx, esi
jne 0x4a1ba7
mov eax, dword [ebp + 0x7c]
call fcn.004a1b54
jmp 0x4a1d44
cmp dword [ebp + 0x7c], edx
jle 0x4a1bbc
mov edi, dword [ebp + 0x7c]
call fcn.004a3139
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4a1bec
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4a1c43
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a1c1f
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a1c1f
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a1c0d
cmp eax, dword [ebp - 0xa8]
jne 0x4a1c3d
cmp dword [ebp - 0xa8], 0x40
jae 0x4a1c3d
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a1c43
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a1c4c
xor ebx, ebx
jmp 0x4a1c4f
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a1c6e
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a1c73
jne 0x4a1c76
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4a1ccf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a1ca9
cmp eax, 0x2714
jne 0x4a1cd3
cmp dword [ebp + 0x7c], 0
jle 0x4a1c52
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a3139
push edx
push eax
call fcn.004a314f
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a1c52
jmp 0x4a1cd3
test eax, eax
jge 0x4a1cd8
or eax, 0xffffffff
jmp 0x4a1d44
jne 0x4a1cde
xor eax, eax
jmp 0x4a1d44
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a1d10
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a1cfa
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a1d10
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a1d42
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a1d2c
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a1d42
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a3c96
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a3ca3
jmp dword [eax*4 + 0x4a3cfe]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4a59e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4a5a05
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a5a36
cmp dword [esi + 8], 0
jne 0x4a5a26
push 0x4b4610
push dword [eax + 8]
call fcn.00479f3f
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a5a26
or eax, 0xffffffff
jmp 0x4a5a5c
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004775ac
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a5a44
cmp edi, dword [ebp + 0xc]
jbe 0x4a5a5a
test ebx, ebx
jne 0x4a5a54
push dword [esi + 8]
call fcn.00477bd0
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x402dda
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x4213f0]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41b7b5
call fcn.0040fdc7
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040f480
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.00402601
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x402eb8
cmp byte [ebp - 0xd], bl
je 0x402e72
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402b95
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x402e9d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402b95
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x402e52
mov eax, dword [ebp - 0x14]
cmp dword [0x42270c], eax
jne 0x402edf
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x402ed5
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.004026b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040f4fa
add ebp, 0x124
leave
ret 4
Function at 0x404a81
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x398
lea ebp, [esp - 4]
mov eax, dword [0x4213f0]
xor eax, ebp
mov dword [ebp + 0x398], eax
push 0x18
mov eax, 0x41b91c
call fcn.0040fdc7
mov eax, dword [ebp + 0x3a4]
xor ebx, ebx
mov esi, ecx
push ebx
lea ecx, [ebp + 0x174]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18c], 0xf
call fcn.00402601
mov edi, 0x104
push edi
lea eax, [ebp + 0x190]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040f480
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x41c2a8
push 0x15
push ebx
push 0x41c308
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x404c65
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x404b25
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [0x422714], ecx
mov dword [esi + 0x1c], ecx
jmp 0x404b28
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
jl 0x404c65
movzx eax, cx
test eax, eax
je 0x404c65
cmp byte [0x422708], 1
je 0x404b87
push 0xa
lea eax, [ebp + 0x190]
push eax
push ecx
call fcn.00410014
add esp, 0xc
lea eax, [ebp + 0x190]
push eax
lea ecx, [ebp + 0x174]
call fcn.00402b78
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00401f19
cmp eax, ebx
je 0x404b96
push eax
lea eax, [ebp + 0x174]
push eax
mov ecx, esi
call fcn.00402bb2
jmp 0x404b96
lea eax, [ebp + 0x174]
push eax
push ecx
mov ecx, esi
call fcn.00404952
push edi
lea eax, [ebp + 0x294]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040f480
lea eax, [ebp + 0x294]
push str.SOFTWAREINTEL_
push eax
call fcn.0040f520
lea eax, [ebp + 0x294]
push str.Configurations
push eax
call fcn.0040f520
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x294]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c62
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
call fcn.00402ae4
mov esi, 0x174
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.0040f480
mov eax, dword [ebp + 0x178]
add esp, 0xc
cmp dword [ebp + 0x18c], 0x10
mov dword [ebp - 0x20], 0x1c8
jae 0x404c27
lea eax, [ebp + 0x178]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404c4f
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call fcn.0040f630
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp]
call fcn.00402b14
jmp 0x404c65
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x404c75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
push ebx
push 1
lea ecx, [ebp + 0x174]
call fcn.004026b0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.0040f4fa
add ebp, 0x39c
leave
ret 4
Function at 0x406c4d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x406c9b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x406cac
push 0xd
pop eax
jmp 0x406cd6
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x406caf
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x407328
Capabilities:
Create thread

Disassembly:
cmp byte [0x422756], 1
jne 0x407375
push edi
xor edi, edi
cmp dword [0x422758], edi
jne 0x407374
push esi
push 0x422758
push edi
push edi
push 0x40716a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
jne 0x40735f
mov dword [0x422758], edi
jmp 0x407373
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407373
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
ret

Function at 0x407967
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SoftwareIntelDisplayigfxcuiigfxcfg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4079c2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.DCRotationCaps
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], 1
pop esi
sete al
leave
ret
Function at 0x407fe3
Capabilities:
Get geographical location
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
movzx eax, ax
push esi
push 3
push eax
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0040d774
pop ecx
push ebx
push eax
push 3
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareIntelDisplayigfxcuihkcmd_resources
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408068
push ebx
push dword [ebp - 8]
push 1
push esi
push str.UserLangID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
pop edi
pop esi
pop ebx
je 0x408079
push dword [ebp - 8]
call fcn.0040d9d0
pop ecx
leave
ret