joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ba70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xe0cbe4]
test eax, eax
jne 0x41ba97
push str.Server_quit_n
call fcn.00437680
call fcn.0040dac0
call fcn.0041dea0
push 1
call fcn.00422340
add esp, 8
jmp 0x441500
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call fcn.004404a0
call fcn.00444f40
push 0
call fcn.004c494e
nop
nop
nop
nop
nop
nop
nop

Function at 0x424020
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 0x440ed0
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 0x441330
Capabilities:
Create process on windows
Get common file path

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 0x4ebbd0
call fcn.00429e50
add esp, 0xc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4413b8
lea ecx, [esp + 0x5c]
push esi
push ecx
push str.Could_not_start_process:__s_s
push 1
call fcn.0041b850
add esp, 0x10
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0x168]
test eax, eax
je 0x4413d2
push str.quit
push 2
call fcn.0041adc0
add esp, 8
pop edi
pop esi
add esp, 0x158
ret

Function at 0x4413e0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 9
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x44140f
push esi
push str.Could_not_open_url:__s
push 1
call fcn.0041b850
add esp, 0xc
pop esi
ret
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x441422
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x441439
push str.quit
push 2
call fcn.0041adc0
add esp, 8
pop esi
ret

Function at 0x441b60
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 0x441bd1
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x441bc5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x441bc5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebp
inc eax
push eax
call fcn.0041c200
add esp, 4
mov edi, eax
push esi
call ebp
push eax
push ebx
push edi
call fcn.00429aa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x4ebc40
push edi
call fcn.004c4e00
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 0x442bb0
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 [0xa048b4]
test eax, eax
je 0x442bd5
mov esi, dword [0xa036f8]
test esi, esi
je 0x442d3a
mov eax, dword [0xb8ff18]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x28], 0x10
mov dword [0xb8ff18], 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 0x442c48
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x442d3a
cmp eax, 0x2746
je 0x442d3a
call fcn.004425a0
push eax
push str.NET_GetPacket:__s_n
call fcn.0041b660
add esp, 8
jmp 0x442d3a
mov eax, dword [0xa048b4]
cmp esi, eax
jne 0x442c5b
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0xa0490c]
test ecx, ecx
je 0x442cff
cmp esi, eax
jne 0x442cff
mov ecx, dword [esp + 0x28]
mov edi, 0xa04898
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x442cfb
mov eax, dword [esp + 0x2c]
mov ecx, 0xa
cmp eax, ecx
jl 0x442d3a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x442d3a
mov dl, byte [eax + 1]
test dl, dl
jne 0x442d3a
mov dl, byte [eax + 2]
test dl, dl
jne 0x442d3a
cmp byte [eax + 3], 1
jne 0x442d3a
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 0x442d14
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004428a0
add esp, 8
mov dword [ebp + 0x18], 0
cmp edi, dword [ebp + 0x10]
jne 0x442d56
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00427380
push eax
push str.Oversize_packet_from__s_n
call fcn.0041b660
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x442bc5
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 0x442d70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
cmp eax, 3
push ebp
jne 0x442d85
mov ebp, dword [0xa048b4]
jmp 0x442da6
cmp eax, 4
jne 0x442d92
mov ebp, dword [0xa048b4]
jmp 0x442da6
cmp eax, 5
je 0x442da0
cmp eax, 6
jne 0x442e93
mov ebp, dword [0xa036f8]
test ebp, ebp
je 0x442ea2
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004427f0
mov eax, dword [0xa0490c]
add esp, 8
test eax, eax
je 0x442e3c
cmp dword [esp + 0x20], 4
jne 0x442e3c
mov ax, word [esp + 6]
mov edx, dword [esp + 8]
mov word [0xa0389c], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [0xa03898], edx
push esi
mov esi, dword [esp + 0x20]
mov edx, ecx
push edi
mov edi, 0xa0389e
mov byte [0xa03894], 0
shr ecx, 2
mov byte [0xa03895], 0
mov byte [0xa03896], 0
mov byte [0xa03897], 1
push 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa04898
add eax, 0xa
push 0
and ecx, 3
push eax
push 0xa03894
push ebp
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_sendto
pop edi
pop esi
jmp 0x442e55
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 0x442ea2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x442ea2
cmp eax, 0x2741
jne 0x442e7b
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x442ea2
cmp eax, 6
je 0x442ea2
call fcn.004425a0
push eax
push str.NET_SendPacket:__s_n
call fcn.0041b660
add esp, 8
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0041b850
add esp, 8
pop ebp
add esp, 0x10
ret
Function at 0x443030
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 0x443060
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0041b660
add esp, 0xc
jmp 0x44306d
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0041b660
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4430a7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x44309e
call fcn.004425a0
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s_n
call fcn.0041b660
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 0x4430d8
call fcn.004425a0
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0041b660
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 0x44310d
call fcn.004425a0
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041b660
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x443138
cmp byte [edi], 0
je 0x443138
push str.localhost
push edi
call fcn.00429bc0
add esp, 8
test eax, eax
je 0x443138
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00442900
add esp, 8
jmp 0x443140
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x44314e
mov word [esp + 0x16], 0
jmp 0x443159
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 0x443194
call fcn.004425a0
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0041b660
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 0x4435a0
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 0x4435ca
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 0x4435e8
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.0041b660
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x443621
mov esi, 4
push eax
push str.Alias:__s_n
call fcn.0041b660
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
add esi, 4
test eax, eax
jne 0x443606
cmp word [edi + 8], 2
jne 0x4436b8
xor eax, eax
mov dword [0xa04900], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x4436b8
cmp eax, 0x10
jge 0x4436b8
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [0xa04900]
mov dl, byte [esi]
mov dword [esp + 8], eax
mov byte [ecx*4 + 0xa048bc], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0xa048bd], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0xa048be], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0xa048bf], 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.0041b660
mov eax, dword [0xa04900]
add esp, 0x14
inc eax
mov dword [0xa04900], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x44363c
pop edi
pop esi
add esp, 0x104
ret
Function at 0x443780
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 0x4437c7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x4437c0
call fcn.004425a0
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0041b660
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 0x4437f6
call fcn.004425a0
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0041b660
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 0x443829
call fcn.004425a0
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041b660
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 0x443851
mov word [esp + 0x14], cx
jmp 0x44385c
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 0x44388e
call fcn.004425a0
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0041b660
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 0x444f40
Capabilities:
Hide graphical window

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

Function at 0x444f80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xa051cc], eax
mov eax, dword [0xa051c8]
cmp ecx, eax
je 0x444ff8
mov edx, dword [0xa04d40]
mov dword [0xa051c8], ecx
test edx, edx
je 0x444ff8
mov eax, ecx
sub eax, 0
je 0x444fef
dec eax
je 0x444fcc
dec eax
je 0x444fc2
push ecx
push str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
call fcn.00441460
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 [0xa04d44]
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 0x4663b0
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 [0x109bd84], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x109bd7c], eax
call esi
push 0x109bd80
push 0
push 0
mov dword [0x109bd6c], eax
mov eax, dword [esp + 0x14]
push 0x466390
push 0
push 0
mov dword [0x109bd78], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x109bd74], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x478520
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x478550
push esi
call fcn.00489410
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x478549
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 0x478583
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x478578
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 0x4785a3
cmp eax, 0xcc
je 0x4785a3
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 0x4785c6
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 0x4785f1
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 0x4785d3
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 0x478a00
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x118435c]
sub esp, 0x694
test eax, eax
je 0x478b92
mov eax, dword [0x11826e0]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x478b92
mov eax, dword [0x109bd44]
test eax, eax
je 0x478b92
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 0x478a59
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
jne 0x478b15
cmp dword [esp + 0x20], 2
jne 0x478b15
push str.performing_W2K_gamma_clamp._n
call fcn.0041b800
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 0x478aee
lea ebx, [edx + 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x478ad9
cmp word [esi], 0xfe00
jbe 0x478b0a
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x478acc
jmp 0x478b22
push str.skipping_W2K_gamma_clamp._n
call fcn.0041b800
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 0x478b41
mov word [eax], cx
add eax, 2
dec edx
jne 0x478b35
add esi, 0x200
dec edi
jne 0x478b2e
mov eax, dword [0x11732cc]
pop edi
pop esi
pop ebp
pop ebx
lea edx, [esp + 0x94]
test eax, eax
push edx
je 0x478b75
mov ecx, dword [0x109bd44]
push ecx
call eax
add esp, 0x694
ret
mov eax, dword [0x109bd44]
push eax
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x478b92
push str.SetDeviceGammaRamp_failed._n
call fcn.0041b660
add esp, 4
add esp, 0x694
ret
Function at 0x48d390
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.004af730
lea ecx, [esp + 0x7c]
push ecx
push esi
call fcn.004a03b0
add esp, 0x1c
test eax, eax
jne 0x48d43d
push esi
push str.no_entity_with_model__d_n
push 1
call dword [0x1192280]
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 0x48d430
fld dword [ecx + ebp]
fadd dword [esi + ecx]
fsub dword [0x4d7398]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
je 0x48d430
inc edi
add ecx, 4
cmp edi, 2
jl 0x48d45a
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.004af630
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 0x48d430
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x48d430
mov eax, dword [esp + 0xc4]
cmp eax, 0x3ff
je 0x48d430
push eax
call fcn.004a0360
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jne 0x48d430
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb8
ret
Function at 0x48dec0
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.004b0470
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 0x48df3e
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 [0x1191c04]
fadd dword [0x4d8344]
fsubp st(1)
fstp dword [esp + 0x30]
call fcn.004b0470
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 0x48dfff
fld dword [esp + 0x10]
fsub dword [0x1191c08]
fsub dword [0x4d739c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
je 0x48e02c
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
fld dword [esp + 0x78]
fadd dword [0x4d739c]
fst dword [esp + 0x78]
fcomp dword [0x4d77bc]
fnstsw ax
test ah, 0x41
jne 0x48df58
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.004af680
add esp, 4
test al, 0x30
jne 0x48e01e
fld dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret