joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4290d0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
push esi
push 4
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00428890
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00428890
add esp, 0x18
xor esi, esi
lea ecx, [esp + 0x2c]
mov dl, byte [ecx]
mov eax, dword [ecx]
mov byte [esp + esi + 4], dl
mov edx, eax
shr edx, 8
mov byte [esp + esi + 5], dl
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [esp + esi + 6], dl
mov byte [esp + esi + 7], al
add esi, 4
add ecx, 4
cmp esi, 8
jb 0x42913b
mov ecx, dword [esp + 0x2c]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x429180
mov eax, 0x78
sub eax, ecx
push eax
lea eax, [esp + 0x20]
push 0x4c3e34
push eax
call fcn.00428890
push 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00428890
add esp, 0x18
xor esi, esi
lea ecx, [esp + 0x1c]
mov al, byte [ecx]
mov byte [esp + esi + 0xc], al
mov eax, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esp + esi + 0xd], dl
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [esp + esi + 0xe], dl
mov byte [esp + esi + 0xf], al
add esi, 4
add ecx, 4
cmp esi, 0x10
jb 0x4291ac
push 0x58
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00420650
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor eax, esi
add esp, 0xc
xor eax, edx
xor eax, ecx
pop esi
add esp, 0x70
ret
Function at 0x4468e0
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 0x446910
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x966d9c]
mov ecx, dword [eax + 4]
push ebx
push ebp
push esi
push edi
push str.monkey
push ecx
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x446980
push 0x180
push 0x301
push str.monkey.log
call fcn.004b9934
mov edx, dword [0x8f36b8]
push edx
push 0x4ca5c8
mov dword [0x8f3cc0], eax
call fcn.00446870
mov eax, dword [0x8f3cc0]
add esp, 0x14
test eax, eax
je 0x446abb
push eax
call fcn.004b5d8c
add esp, 4
mov dword [0x8f3cc0], 0
jmp 0x446abb
mov eax, dword [0x966d9c]
mov ecx, dword [eax + 8]
push ecx
call fcn.004aebeb
mov edx, dword [0x966d9c]
mov dword [0x8f36b8], eax
mov eax, dword [edx + 0xc]
push 0x4c3608
push eax
call fcn.004b0126
mov esi, eax
add esp, 0xc
test esi, esi
je 0x446a24
push 2
push 0
push esi
call fcn.004afecc
push esi
call fcn.004aff58
push 0
push 0
push esi
mov ebx, eax
call fcn.004afecc
push ebx
call fcn.004b03ec
push esi
push 1
mov ebp, eax
push ebx
push ebp
call fcn.004b0304
add esp, 0x30
cmp eax, 1
jne 0x446a24
push esi
call fcn.004b00b0
mov edi, dword [0x4ca5b4]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
test ebx, ebx
mov edi, ecx
jle 0x446a24
mov ecx, dword [0x4ca5b4]
push edi
push ecx
lea edx, [esi + ebp]
push edx
call fcn.0042d080
add esp, 0xc
test eax, eax
je 0x446a29
inc esi
cmp esi, ebx
jl 0x446a07
pop edi
pop esi
pop ebp
pop ebx
ret
cmp esi, ebx
jge 0x446a24
mov eax, dword [0x8f36b8]
sar eax, 0x18
mov byte [esi + ebp], al
mov ecx, dword [0x8f36b8]
sar ecx, 0x10
mov byte [esi + ebp + 1], cl
mov edx, dword [0x8f36b8]
sar edx, 8
mov byte [esi + ebp + 2], dl
mov al, byte [0x8f36b8]
mov byte [esi + ebp + 3], al
mov byte [esi + ebp + 9], 0
mov byte [esi + ebp + 8], 0
mov byte [esi + ebp + 7], 0
mov byte [esi + ebp + 6], 0
mov byte [esi + ebp + 5], 0
mov byte [esi + ebp + 4], 0
mov ecx, dword [0x966d9c]
mov edx, dword [ecx + 0xc]
push 0x4c360c
push edx
call fcn.004b0126
add esp, 8
mov esi, eax
test esi, esi
je 0x446a24
push esi
push 1
push ebx
push ebp
call fcn.004b01fa
add esp, 0x10
cmp eax, 1
jne 0x446a24
push esi
call fcn.004b00b0
push ebp
call fcn.004b0191
add esp, 8
push 0
call fcn.004b086e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4470c0
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 0x447131
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x447125
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x447125
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebp
inc eax
push eax
call fcn.0041da90
add esp, 4
push esi
mov edi, eax
call ebp
push eax
push ebx
push edi
call fcn.0042cf90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x4ca600
push edi
call fcn.004b0c9c
add esp, 8
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
mov eax, edi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x4481c0
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]
push esi
xor eax, eax
push edi
mov dword [esp + 0x10], eax
test eax, eax
mov esi, dword [0x8f4e84]
je 0x4481e5
mov esi, dword [0x8f3cc8]
test esi, esi
je 0x448377
inc dword [0x967154]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
push esi
mov dword [esp + 0x44], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x44824d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x448377
cmp eax, 0x2746
je 0x448377
call fcn.00447bd0
push eax
push str.NET_GetPacket:__s_n
call fcn.0041cb80
add esp, 8
jmp 0x448377
mov ecx, dword [0x8f4e84]
cmp esi, ecx
jne 0x448261
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov edx, dword [0x8f4edc]
test edx, edx
je 0x4482fd
cmp esi, ecx
jne 0x4482fd
mov ecx, dword [esp + 0x2c]
mov edi, 0x8f4e68
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4482fd
cmp eax, 0xa
jl 0x448377
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x448377
mov dl, byte [ecx + 1]
test dl, dl
jne 0x448377
mov dl, byte [ecx + 2]
test dl, dl
jne 0x448377
cmp byte [ecx + 3], 1
jne 0x448377
mov dword [ebx], 4
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 4]
mov byte [ebx + 4], dl
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 5]
mov byte [ebx + 5], dl
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 6]
mov byte [ebx + 6], dl
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 7]
mov byte [ebx + 7], dl
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 8]
mov word [ebx + 0x12], dx
mov dword [ebp + 0x18], 0xa
jmp 0x448351
mov cx, word [esp + 0x14]
cmp cx, 2
jne 0x44831c
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x16]
mov dword [ebx], 4
mov dword [ebx + 4], ecx
jmp 0x448346
cmp cx, 6
jne 0x44834a
mov ecx, dword [esp + 0x16]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x1a]
lea edx, [ebx + 0xc]
mov dword [edx], ecx
mov cx, word [esp + 0x1e]
mov word [edx + 4], cx
mov dx, word [esp + 0x20]
mov dword [ebx], 5
mov word [ebx + 0x12], dx
mov dword [ebp + 0x18], 0
cmp eax, dword [ebp + 0x10]
jne 0x448393
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0042b4c0
push eax
push str.Oversize_packet_from__s_n
call fcn.0041cb80
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x4481d5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov dword [ebp + 0x14], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x4483b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
cmp eax, 3
push ebp
jne 0x4483c5
mov ebp, dword [0x8f4e84]
jmp 0x4483e6
cmp eax, 4
jne 0x4483d2
mov ebp, dword [0x8f4e84]
jmp 0x4483e6
cmp eax, 5
je 0x4483e0
cmp eax, 6
jne 0x4484d3
mov ebp, dword [0x8f3cc8]
test ebp, ebp
je 0x4484e2
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00447e20
mov eax, dword [0x8f4edc]
add esp, 8
test eax, eax
je 0x44847c
cmp dword [esp + 0x20], 4
jne 0x44847c
mov ax, word [esp + 6]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x20]
mov word [0x8f3e6c], ax
mov eax, dword [esp + 0x1c]
push edi
mov dword [0x8f3e68], edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov byte [0x8f3e64], 0
mov byte [0x8f3e65], 0
mov byte [0x8f3e66], 0
mov byte [0x8f3e67], 1
mov edi, 0x8f3e6e
rep movsd dword es:[edi], dword [esi]
push 0x10
push 0x8f4e68
push 0
add eax, 0xa
push eax
mov ecx, edx
push 0x8f3e64
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_sendto
pop edi
pop esi
jmp 0x448495
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0x10
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push ebp
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x4484e2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4484e2
cmp eax, 0x2741
jne 0x4484bb
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x4484e2
cmp eax, 6
je 0x4484e2
call fcn.00447bd0
push eax
push str.NET_SendPacket:__s_n
call fcn.0041cb80
add esp, 8
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0041cd90
add esp, 8
pop ebp
add esp, 0x10
ret
Function at 0x448670
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]
test edi, edi
mov eax, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
je 0x4486a0
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0041cb80
add esp, 0xc
jmp 0x4486ad
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0041cb80
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4486e7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x4486de
call fcn.00447bd0
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s_n
call fcn.0041cb80
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 0x448718
call fcn.00447bd0
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0041cb80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x44874d
call fcn.00447bd0
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041cb80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x448778
cmp byte [edi], 0
je 0x448778
push str.localhost
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x448778
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00447ed0
add esp, 8
jmp 0x448780
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x44878e
mov word [esp + 0x16], 0
jmp 0x448799
push ebp
call sub.WSOCK32.dll_htons
mov word [esp + 0x16], ax
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
mov word [esp + 0x20], 2
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4487d4
call fcn.00447bd0
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0041cb80
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x448be0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push esi
push edi
push 0x100
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x448c0a
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 0x448c28
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.0041cb80
mov eax, dword [edi + 4]
mov eax, dword [eax]
add esp, 8
test eax, eax
je 0x448c61
mov esi, 4
push eax
push str.Alias:__s_n
call fcn.0041cb80
mov ecx, dword [edi + 4]
mov eax, dword [esi + ecx]
add esp, 8
add esi, 4
test eax, eax
jne 0x448c46
cmp word [edi + 8], 2
jne 0x448cf8
xor eax, eax
mov dword [0x8f4ed0], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x448cf8
cmp eax, 0x10
jge 0x448cf8
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov dl, byte [esi]
mov ecx, dword [0x8f4ed0]
mov byte [ecx*4 + 0x8f4e8c], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0x8f4e8d], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0x8f4e8e], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0x8f4e8f], dl
mov ecx, eax
xor edx, edx
mov dword [esp + 8], eax
and ecx, 0xff
push ecx
mov dl, ah
xor eax, eax
mov al, byte [esp + 0xe]
xor ecx, ecx
mov cl, byte [esp + 0xf]
push edx
push eax
push ecx
push str.IP:__i._i._i._i_n
call fcn.0041cb80
mov eax, dword [0x8f4ed0]
add esp, 0x14
inc eax
mov dword [0x8f4ed0], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x448c7c
pop edi
pop esi
add esp, 0x104
ret
Function at 0x448d10
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 0x448d57
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x448d50
call fcn.00447bd0
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0041cb80
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 0x448d86
call fcn.00447bd0
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0041cb80
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
push 4
lea ecx, [esp + 8]
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x448db9
call fcn.00447bd0
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041cb80
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0xe], edx
mov word [esp + 8], 6
mov dword [esp + 0xa], ecx
mov word [esp + 0x12], dx
jne 0x448de1
mov word [esp + 0x14], cx
jmp 0x448dec
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x14], ax
push 0xe
lea eax, [esp + 0xc]
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x448e1e
call fcn.00447bd0
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0041cb80
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 0x449140
Capabilities:
Initialize winsock library

Disassembly:
push 0x8f3cd0
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x449162
push eax
push str.WARNING:_Winsock_initialization_failed__returned__d_n
call fcn.0041cb80
add esp, 8
ret
push str.Winsock_Initialized_n
mov dword [0x8f4ed8], 1
call fcn.0041cb80
call fcn.00448ff0
push 1
call fcn.00448e30
add esp, 8
ret
Function at 0x44a330
Capabilities:
Hide graphical window

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

Function at 0x44a370
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x8f579c], eax
cmp ecx, dword [0x8f5798]
je 0x44a3e7
mov edx, dword [0x8f5310]
test edx, edx
mov dword [0x8f5798], ecx
je 0x44a3e7
mov eax, ecx
sub eax, 0
je 0x44a3de
dec eax
je 0x44a3bb
dec eax
je 0x44a3b1
push ecx
push str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
call fcn.00446ad0
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 [0x8f5314]
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 0x453f10
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
and ecx, 0x1f
mov dword [edx], ecx
mov ecx, eax
shr ecx, 0x11
and ecx, 0x3fff
mov edx, dword [ecx*4 + 0xc4b57c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov ecx, dword [esp + 8]
mov edx, eax
shr edx, 7
and edx, 0x3ff
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
and eax, 3
mov dword [edx], eax
ret
Function at 0x469b80
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 [0xc36fe4], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0xc36fdc], eax
call esi
push 0xc36fe0
push 0
push 0
push 0x469b60
mov dword [0xc36fcc], eax
mov eax, dword [esp + 0x18]
push 0
push 0
mov dword [0xc36fd8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0xc36fd4], eax
pop esi
mov eax, ecx
ret

Function at 0x4759c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4759f0
push esi
call fcn.00484710
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4759e9
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 0x475a23
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x475a18
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
push esi
call dword [edx]
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x475a43
cmp eax, 0xcc
je 0x475a43
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x11
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
cmp dword [esi + 0x10], 0xcc
je 0x475a66
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 0x475a91
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
push esi
call dword [edx]
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 8]
add esp, 4
test cl, cl
jne 0x475a73
mov dl, byte [esi + 0x41]
xor ecx, ecx
test dl, dl
setne cl
mov al, 1
add ecx, 0xcd
mov dword [esi + 0x10], ecx
pop esi
ret
Function at 0x475dc0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0xc6463c]
sub esp, 0x694
test eax, eax
je 0x475f52
mov eax, dword [0xc619d0]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x475f52
mov eax, dword [0xc36fa4]
test eax, eax
je 0x475f52
mov eax, dword [esp + 0x69c]
push ebx
push ebp
mov ebp, dword [esp + 0x6a8]
push esi
push edi
mov edi, dword [esp + 0x6a8]
sub edi, eax
lea esi, [esp + 0x2a4]
sub ebp, eax
mov edx, 0x100
movzx cx, byte [edi + eax]
xor ebx, ebx
mov bh, cl
add esi, 2
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
mov word [esi + 0x1fe], bx
inc eax
dec edx
jne 0x475e19
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
jne 0x475ed5
cmp dword [esp + 0x20], 2
jne 0x475ed5
push str.performing_W2K_gamma_clamp._n
call fcn.0041cd30
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 0x475eae
lea ebx, [edx + 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x475e99
cmp word [esi], 0xfe00
jbe 0x475eca
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x475e8c
jmp 0x475ee2
push str.skipping_W2K_gamma_clamp._n
call fcn.0041cd30
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 0x475f01
mov word [eax], cx
add eax, 2
dec edx
jne 0x475ef5
add esi, 0x200
dec edi
jne 0x475eee
mov eax, dword [0xc37964]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
lea edx, [esp + 0x94]
push edx
je 0x475f35
mov ecx, dword [0xc36fa4]
push ecx
call eax
add esp, 0x694
ret
mov eax, dword [0xc36fa4]
push eax
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x475f52
push str.SetDeviceGammaRamp_failed._n
call fcn.0041cb80
add esp, 4
add esp, 0x694
ret
Function at 0x489420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
mov edx, dword [ebx + 8]
fld dword [ebx + 8]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push ebp
push esi
push edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x80]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
fsub dword [0x4bd1b8]
push ecx
lea edx, [esp + 0x3c]
push edx
fstp dword [esp + 0x30]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x44]
fcomp dword [0x4bc318]
fnstsw ax
add esp, 0x14
test ah, 1
jne 0x4894a1
fld dword [0x4bc318]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
fld dword [esp + 0x3c]
mov ebp, dword [esp + 0x7c]
fadd dword [0x4bc318]
mov dword [esp + 0x78], 0x41000000
fstp dword [esp + 0x10]
fld dword [esp + 0x78]
mov edx, dword [0xc6a3a8]
fmul dword [ebp]
fadd dword [ebx]
fst dword [esp + 0x20]
fld dword [esp + 0x78]
fmul dword [ebp + 4]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x10]
mov dword [esp + 0x18], eax
fadd dword [0x4bcdb4]
mov eax, dword [esp + 0x80]
push eax
push 4
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
fld dword [edx + 0x10]
push ecx
fadd dword [0x4bd1b4]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x60]
fsubr dword [esp + 0x38]
push eax
fstp dword [esp + 0x30]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
jne 0x48956b
fld dword [esp + 0x10]
mov ecx, dword [0xc6a3b0]
fsub dword [ecx + 0x10]
fsub dword [0x4bc2fc]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
je 0x489598
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
fld dword [esp + 0x78]
fadd dword [0x4bc2fc]
fst dword [esp + 0x78]
fcomp dword [0x4bc40c]
fnstsw ax
test ah, 0x41
jne 0x4894bb
fld dword [0x4bc2d8]
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 [0x4bc810]
lea edx, [esp + 0x14]
push edx
fstp dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.004a8a60
add esp, 4
test al, 0x20
jne 0x48958a
fld dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret