joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41531e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d2ed
and dword [ebp - 0x14], 0
cmp dword [0x426280], 0
mov dword [ebp - 0x18], eax
jne 0x4153d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415479
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x415479
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426288], eax
call edi
push eax
call esi
mov dword [0x426290], eax
test eax, eax
je 0x4153d1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42628c], eax
mov eax, dword [0x42628c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41542a
cmp dword [0x426290], ecx
je 0x41542a
push eax
call esi
push dword [0x426290]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41542a
test ebx, ebx
je 0x41542a
call edi
test eax, eax
je 0x415421
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415421
test byte [ebp - 8], 1
jne 0x41542a
or dword [ebp + 0x10], 0x200000
jmp 0x41545d
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x41545d
push eax
call esi
test eax, eax
je 0x41545d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41545d
mov eax, dword [0x426288]
cmp eax, dword [ebp - 0x18]
je 0x41545d
push eax
call esi
test eax, eax
je 0x41545d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426280]
call esi
test eax, eax
je 0x415479
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41547b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096b8
leave
ret
Function at 0x41bce0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xdfb664]
test eax, eax
jne 0x41bd07
push str.Server_quit_n
call fcn.00437280
call fcn.0040da50
call fcn.0041e0f0
push 1
call fcn.00421e90
add esp, 8
jmp 0x441220
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call fcn.00440230
call fcn.00444c40
push 0
call fcn.004c4472
nop
nop
nop
nop
nop
nop
nop

Function at 0x423ca0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x440c60
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 8]
mov ecx, 0x6000000
cmp ecx, edx
sbb eax, eax
inc eax
add esp, 0x20
ret

Function at 0x4410c0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], 0x44
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
mov esi, dword [esp + 0x164]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push esi
push eax
push 0x4e1248
call fcn.00429a30
add esp, 0xc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x441148
lea ecx, [esp + 0x5c]
push esi
push ecx
push str.Could_not_start_process:__s_s
push 1
call fcn.0041bac0
add esp, 0x10
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0x168]
test eax, eax
je 0x44113f
push 0
call fcn.004c4472
nop
nop
nop
nop
nop
nop

Function at 0x441880
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4418f1
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4418e5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4418e5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebp
inc eax
push eax
call fcn.0041c470
add esp, 4
mov edi, eax
push esi
call ebp
push eax
push ebx
push edi
call fcn.00429680
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x4ebcd0
push edi
call fcn.004c4924
add esp, 8
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop ebx
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x4428d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, dword [0x9fd544]
test eax, eax
je 0x4428f5
mov esi, dword [0x9fc388]
test esi, esi
je 0x442a5a
mov eax, dword [0xb86cb8]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x28], 0x10
mov dword [0xb86cb8], eax
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
push esi
call sub.WSOCK32.dll_recvfrom
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x442968
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x442a5a
cmp eax, 0x2746
je 0x442a5a
call fcn.004422c0
push eax
push str.NET_GetPacket:__s_n
call fcn.0041b8e0
add esp, 8
jmp 0x442a5a
mov eax, dword [0x9fd544]
cmp esi, eax
jne 0x44297b
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0x9fd59c]
test ecx, ecx
je 0x442a1f
cmp esi, eax
jne 0x442a1f
mov ecx, dword [esp + 0x28]
mov edi, 0x9fd528
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x442a1b
mov eax, dword [esp + 0x2c]
mov ecx, 0xa
cmp eax, ecx
jl 0x442a5a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x442a5a
mov dl, byte [eax + 1]
test dl, dl
jne 0x442a5a
mov dl, byte [eax + 2]
test dl, dl
jne 0x442a5a
cmp byte [eax + 3], 1
jne 0x442a5a
mov dword [ebx], 4
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x2c]
mov dl, byte [eax + 4]
mov byte [ebx + 4], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ebx + 5], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 6]
mov byte [ebx + 6], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 7]
mov byte [ebx + 7], dl
mov eax, dword [ebp + 0xc]
mov dx, word [eax + 8]
mov word [ebx + 0x12], dx
mov dword [ebp + 0x18], ecx
jmp 0x442a34
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004425c0
add esp, 8
mov dword [ebp + 0x18], 0
cmp edi, dword [ebp + 0x10]
jne 0x442a76
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00427000
push eax
push str.Oversize_packet_from__s_n
call fcn.0041b8e0
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x4428e5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [ebp + 0x14], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x442a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
cmp eax, 3
push ebp
jne 0x442aa5
mov ebp, dword [0x9fd544]
jmp 0x442ac6
cmp eax, 4
jne 0x442ab2
mov ebp, dword [0x9fd544]
jmp 0x442ac6
cmp eax, 5
je 0x442ac0
cmp eax, 6
jne 0x442bb3
mov ebp, dword [0x9fc388]
test ebp, ebp
je 0x442bc2
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00442510
mov eax, dword [0x9fd59c]
add esp, 8
test eax, eax
je 0x442b5c
cmp dword [esp + 0x20], 4
jne 0x442b5c
mov ax, word [esp + 6]
mov edx, dword [esp + 8]
mov word [0x9fc52c], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [0x9fc528], edx
push esi
mov esi, dword [esp + 0x20]
mov edx, ecx
push edi
mov edi, 0x9fc52e
mov byte [0x9fc524], 0
shr ecx, 2
mov byte [0x9fc525], 0
mov byte [0x9fc526], 0
mov byte [0x9fc527], 1
push 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x9fd528
add eax, 0xa
push 0
and ecx, 3
push eax
push 0x9fc524
push ebp
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_sendto
pop edi
pop esi
jmp 0x442b75
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 4]
push 0x10
push eax
push 0
push ecx
push edx
push ebp
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x442bc2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x442bc2
cmp eax, 0x2741
jne 0x442b9b
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x442bc2
cmp eax, 6
je 0x442bc2
call fcn.004422c0
push eax
push str.NET_SendPacket:__s_n
call fcn.0041b8e0
add esp, 8
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0041bac0
add esp, 8
pop ebp
add esp, 0x10
ret
Function at 0x442d50
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 1
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
je 0x442d80
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0041b8e0
add esp, 0xc
jmp 0x442d8d
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0041b8e0
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x442dc7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x442dbe
call fcn.004422c0
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s_n
call fcn.0041b8e0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x442df8
call fcn.004422c0
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0041b8e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x442e2d
call fcn.004422c0
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041b8e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x442e58
cmp byte [edi], 0
je 0x442e58
push str.localhost
push edi
call fcn.004297a0
add esp, 8
test eax, eax
je 0x442e58
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00442620
add esp, 8
jmp 0x442e60
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x442e6e
mov word [esp + 0x16], 0
jmp 0x442e79
push ebp
call sub.WSOCK32.dll_htons
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
mov word [esp + 0x20], 2
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x442eb4
call fcn.004422c0
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0041b8e0
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4432c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push edi
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x4432ea
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x443308
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
add esp, 0x104
ret
mov edx, dword [edi]
push edx
push str.Hostname:__s_n
call fcn.0041b8e0
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x443341
mov esi, 4
push eax
push str.Alias:__s_n
call fcn.0041b8e0
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
add esi, 4
test eax, eax
jne 0x443326
cmp word [edi + 8], 2
jne 0x4433d8
xor eax, eax
mov dword [0x9fd590], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x4433d8
cmp eax, 0x10
jge 0x4433d8
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [0x9fd590]
mov dl, byte [esi]
mov dword [esp + 8], eax
mov byte [ecx*4 + 0x9fd54c], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0x9fd54d], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0x9fd54e], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0x9fd54f], dl
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0xe]
mov cl, byte [esp + 0xf]
push edx
push eax
push ecx
push str.IP:__i._i._i._i_n
call fcn.0041b8e0
mov eax, dword [0x9fd590]
add esp, 0x14
inc eax
mov dword [0x9fd590], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x44335c
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4434a0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0x3e8
push 2
push 6
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4434e7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x4434e0
call fcn.004422c0
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0041b8e0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x443516
call fcn.004422c0
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0041b8e0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x443549
call fcn.004422c0
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041b8e0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xe], edx
cmp eax, 0xffffffff
mov word [esp + 8], 6
mov dword [esp + 0xa], ecx
mov word [esp + 0x12], dx
jne 0x443571
mov word [esp + 0x14], cx
jmp 0x44357c
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x14], ax
lea eax, [esp + 8]
push 0xe
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4435ae
call fcn.004422c0
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0041b8e0
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x444c40
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x9fd9d0]
test eax, eax
je 0x444c75
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x9fd9d0]
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
mov ecx, dword [0x9fd9d0]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x9fd9d0], 0
ret

Function at 0x444c80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x9fde5c], eax
mov eax, dword [0x9fde58]
cmp ecx, eax
je 0x444cf8
mov edx, dword [0x9fd9d0]
mov dword [0x9fde58], ecx
test edx, edx
je 0x444cf8
mov eax, ecx
sub eax, 0
je 0x444cef
dec eax
je 0x444ccc
dec eax
je 0x444cc2
push ecx
push str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
call fcn.00441180
add esp, 8
ret
push 6
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x9fd9d4]
push 0xffff
push 0
push 0xb6
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
ret
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x465f60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x108a804], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x108a7fc], eax
call esi
push 0x108a800
push 0
push 0
mov dword [0x108a7ec], eax
mov eax, dword [esp + 0x14]
push 0x465f40
push 0
push 0
mov dword [0x108a7f8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x108a7f4], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x4780a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4780d0
push esi
call fcn.00488f90
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4780c9
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x478103
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4780f8
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x478123
cmp eax, 0xcc
je 0x478123
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x11
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
cmp dword [esi + 0x10], 0xcc
je 0x478146
mov edx, dword [esi + 0x17c]
push esi
call dword [edx]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 8]
test cl, cl
je 0x478171
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
mov eax, dword [esi + 0x17c]
add esp, 4
mov cl, byte [eax + 8]
test cl, cl
jne 0x478153
mov dl, byte [esi + 0x41]
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0xcd
mov al, 1
mov dword [esi + 0x10], ecx
pop esi
ret
Function at 0x478580
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x1172ddc]
sub esp, 0x694
test eax, eax
je 0x478712
mov eax, dword [0x1171160]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x478712
mov eax, dword [0x108a7c4]
test eax, eax
je 0x478712
mov eax, dword [esp + 0x69c]
push ebx
push ebp
mov ebp, dword [esp + 0x6a8]
push esi
push edi
mov edi, dword [esp + 0x6a8]
lea esi, [esp + 0x2a4]
sub edi, eax
sub ebp, eax
mov edx, 0x100
movzx cx, byte [edi + eax]
xor ebx, ebx
add esi, 2
mov bh, cl
or ebx, ecx
movzx cx, byte [eax]
mov word [esi - 0x202], bx
xor ebx, ebx
mov bh, cl
or ebx, ecx
movzx cx, byte [eax + ebp]
mov word [esi - 2], bx
xor ebx, ebx
mov bh, cl
or ebx, ecx
inc eax
mov word [esi + 0x1fe], bx
dec edx
jne 0x4785d9
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
jne 0x478695
cmp dword [esp + 0x20], 2
jne 0x478695
push str.performing_W2K_gamma_clamp._n
call fcn.0041ba70
add esp, 4
lea esi, [esp + 0x1a2]
mov edi, 3
xor edx, edx
mov eax, 0x8000
lea ecx, [esi - 0xfe]
xor ebx, ebx
mov bx, word [ecx]
cmp ebx, eax
jle 0x47866e
lea ebx, [edx + 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x478659
cmp word [esi], 0xfe00
jbe 0x47868a
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x47864c
jmp 0x4786a2
push str.skipping_W2K_gamma_clamp._n
call fcn.0041ba70
add esp, 4
lea esi, [esp + 0xa6]
mov edi, 3
mov eax, esi
mov edx, 0xff
mov cx, word [eax - 2]
cmp word [eax], cx
jae 0x4786c1
mov word [eax], cx
add eax, 2
dec edx
jne 0x4786b5
add esi, 0x200
dec edi
jne 0x4786ae
mov eax, dword [0x1161d4c]
pop edi
pop esi
pop ebp
pop ebx
lea edx, [esp + 0x94]
test eax, eax
push edx
je 0x4786f5
mov ecx, dword [0x108a7c4]
push ecx
call eax
add esp, 0x694
ret
mov eax, dword [0x108a7c4]
push eax
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x478712
push str.SetDeviceGammaRamp_failed._n
call fcn.0041b8e0
add esp, 4
add esp, 0x694
ret
Function at 0x48cf10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
mov eax, dword [esp + 0xc4]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
push edi
lea ecx, [esp + 0x50]
push 0
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x34]
and esi, 0xffff
push edx
push eax
push esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0xc1800000
mov dword [esp + 0x2c], 0xc1800000
mov dword [esp + 0x30], 0xc1000000
mov dword [esp + 0x4c], 0x41800000
mov dword [esp + 0x50], 0x41800000
mov dword [esp + 0x54], 0x41000000
mov dword [esp + 0x24], esi
call fcn.004af290
lea ecx, [esp + 0x7c]
push ecx
push esi
call fcn.0049ff40
add esp, 0x1c
test eax, eax
jne 0x48cfbd
push esi
push str.no_entity_with_model__d_n
push 1
call dword [0x1180ce0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret
mov edx, dword [esp + 0xcc]
lea ebx, [esp + 0x50]
lea esi, [esp + 0x68]
lea ebp, [esp + 0x5c]
xor edi, edi
sub ebx, edx
sub esi, edx
mov ecx, edx
sub ebp, edx
fld dword [ebx + ecx]
fadd dword [esi + ecx]
fadd dword [0x4d7398]
fcomp dword [ecx]
fnstsw ax
test ah, 1
jne 0x48cfb0
fld dword [ecx + ebp]
fadd dword [esi + ecx]
fsub dword [0x4d7398]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
je 0x48cfb0
inc edi
add ecx, 4
cmp edi, 2
jl 0x48cfda
fld dword [edx + 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
fadd dword [0x4d8348]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], ecx
push 0x10001
lea eax, [esp + 0x48]
fstp dword [esp + 0x2c]
fld dword [edx + 8]
mov edx, dword [esp + 0xd4]
lea ecx, [esp + 0x3c]
fsub dword [0x4d8344]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x30]
push edx
fstp dword [esp + 0x60]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.004af190
mov ecx, 0x15
mov esi, eax
lea edi, [esp + 0x90]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x48cfb0
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x48cfb0
mov eax, dword [esp + 0xc4]
cmp eax, 0x3ff
je 0x48cfb0
push eax
call fcn.0049fef0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jne 0x48cfb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb8
ret
Function at 0x48da40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
fld dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
fsub dword [0x4d834c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
push edx
lea eax, [esp + 0x18]
push 4
lea ecx, [esp + 0x28]
fstp dword [esp + 0x24]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004affd0
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x30]
fcomp dword [0x4d7390]
fnstsw ax
test ah, 1
jne 0x48dabe
fld dword [0x4d7390]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
fld dword [esp + 0x3c]
fadd dword [0x4d7390]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x78], 0x41000000
fstp dword [esp + 0x10]
fld dword [esp + 0x78]
fmul dword [ebp]
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x14]
push ecx
push 4
fadd dword [ebx]
push edx
lea ecx, [esp + 0x5c]
fst dword [esp + 0x2c]
fld dword [esp + 0x84]
fmul dword [ebp + 4]
fadd dword [ebx + 4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fadd dword [0x4d8348]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push ecx
fstp dword [esp + 0x3c]
fstp dword [esp + 0x28]
fld dword [esp + 0x3c]
fld dword [0x1180664]
fadd dword [0x4d8344]
fsubp st(1)
fstp dword [esp + 0x30]
call fcn.004affd0
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x48db7f
fld dword [esp + 0x10]
fsub dword [0x1180668]
fsub dword [0x4d739c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
je 0x48dbac
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
fld dword [esp + 0x78]
fadd dword [0x4d739c]
fst dword [esp + 0x78]
fcomp dword [0x4d77c0]
fnstsw ax
test ah, 0x41
jne 0x48dad8
fld dword [0x4d7378]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
fsub dword [0x4d7950]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x20]
call fcn.004af1e0
add esp, 4
test al, 0x30
jne 0x48db9e
fld dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret