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

Disassembly:
mov eax, dword [0xec3f1c]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x41d376
cmp dword [eax + 0x20], edi
je 0x41d376
xor esi, esi
jmp 0x41d37a
mov esi, dword [esp + 0xc]
push 0x4faae0
push 0x4faae0
call fcn.004245f0
add esp, 8
call fcn.00444f50
mov edx, dword [0x981e64]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x64
jge 0x41d3b6
mov ecx, dword [0x980228]
inc ecx
cmp ecx, 3
mov dword [0x980228], ecx
jle 0x41d3bc
xor esi, esi
jmp 0x41d3bc
mov dword [0x980228], edi
mov dword [0x981e64], eax
mov eax, dword [0xec3f04]
cmp eax, edi
je 0x41d3dc
push 0xec2f00
push str.recursive_error_after:__s
call fcn.00442800
add esp, 8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0xec2f00
mov dword [0xec3f04], 1
call fcn.004c365c
add esp, 0xc
cmp esi, 3
je 0x41d419
cmp esi, 4
je 0x41d419
push 0xec2f00
push str.com_errorMessage
call fcn.00420d20
add esp, 8
cmp esi, 2
jne 0x41d43f
push 1
call fcn.0040b4e0
add esp, 4
call fcn.0040b3a0
push 0xffffffffffffffff
push 0xec2cc0
mov dword [0xec3f04], edi
call fcn.004c3cac
cmp esi, 1
je 0x41d4da
cmp esi, 3
je 0x41d4da
cmp esi, 4
jne 0x41d4a6
push str.Server_didnt_have_CD_n
call fcn.00438230
mov eax, dword [0xec2cb8]
add esp, 4
cmp eax, edi
je 0x41d48d
cmp dword [eax + 0x20], edi
je 0x41d48d
push 1
call fcn.0040b4e0
add esp, 4
call fcn.0040b3a0
mov dword [0xec3f04], edi
call fcn.0040a8c0
jmp 0x41d49a
push str.Server_didnt_have_CD_n
call fcn.0041d160
add esp, 4
push 0xffffffffffffffff
push 0xec2cc0
call fcn.004c3cac
call fcn.0040e120
push 0xec2f00
push str.Server_fatal_crashed:__s_n
call fcn.0042bc00
push eax
call fcn.00438230
call fcn.0041ffe0
push 0xec2f00
push 0x4da0f4
call fcn.00442800
add esp, 0x14
pop edi
pop esi
ret
push 0xec2f00
push str._nERROR:__s_n_n
call fcn.0041d160
push 0xec2f00
push str.Server_crashed:__s_n
call fcn.0042bc00
push eax
call fcn.00438230
push 1
call fcn.0040b4e0
add esp, 0x18
call fcn.0040b3a0
mov dword [0xec3f04], edi
push 0xffffffffffffffff
push 0xec2cc0
call fcn.004c3cac
nop

Function at 0x41d520
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xec3f04]
test eax, eax
jne 0x41d547
push str.Server_quit_n
call fcn.00438230
call fcn.0040e120
call fcn.0041ffe0
push 1
call fcn.004241a0
add esp, 8
jmp 0x4428a0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call fcn.004418b0
call fcn.00446aa0
push 0
call fcn.004c4a81
nop
nop
nop
nop
nop
nop
nop

Function at 0x425ef0
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 0x4422e0
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 0x442740
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 0x4e75fc
call fcn.0042bc00
add esp, 0xc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4427c8
lea ecx, [esp + 0x5c]
push esi
push ecx
push str.Could_not_start_process:__s_s
push 1
call fcn.0041d360
add esp, 0x10
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0x168]
test eax, eax
je 0x4427bf
push 0
call fcn.004c4a81
nop
nop
nop
nop
nop
nop

Function at 0x442f00
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 0x442f71
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x442f65
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x442f65
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebp
inc eax
push eax
call fcn.0041df30
add esp, 4
mov edi, eax
push esi
call ebp
push eax
push ebx
push edi
call fcn.0042b880
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x4e7648
push edi
call fcn.004c4f33
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 0x443240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0xad1fc0]
mov ecx, dword [0xad37e4]
sub esp, 0x6c
cmp ecx, eax
push esi
push edi
jg 0x443392
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
call esi
test eax, eax
je 0x4432c6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x44]
push 0
push edx
call ebp
test eax, eax
jne 0x44329b
call fcn.0041d520
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x3c]
push ecx
mov dword [0xac9f2c], eax
call edi
lea edx, [esp + 0x3c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
call esi
test eax, eax
jne 0x443285
pop ebp
call fcn.00446b60
mov ebx, eax
test ebx, ebx
je 0x443305
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.0041df30
lea ecx, [esi - 1]
mov edi, eax
push ecx
push ebx
push edi
call fcn.0042b880
push edi
push esi
push 0
push 0
push 5
push 0
call fcn.004431b0
add esp, 0x28
push 0x8000
lea edx, [esp + 0x58]
push 0xac9fc0
push edx
call fcn.00426820
lea eax, [esp + 0x60]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00443f40
add esp, 0x14
test eax, eax
je 0x443382
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
sub ebx, ecx
add ebx, 0x14
push ebx
call fcn.0041df30
mov ecx, 5
lea esi, [esp + 0x10]
mov edi, eax
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x68]
sub ecx, edx
add esi, edx
mov edx, ecx
lea edi, [eax + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0
push 6
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.004431b0
add esp, 0x1c
mov eax, dword [0xad1fc0]
mov ecx, dword [0xad37e4]
cmp ecx, eax
pop ebx
jle 0x4433bb
inc eax
mov ecx, 6
mov dword [0xad1fc0], eax
dec eax
and eax, 0xff
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0xad1fe0]
mov eax, dword [esp + 0x78]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x6c
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov ecx, 6
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x6c
ret
Function at 0x443f40
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 [0xa0cc7c]
test eax, eax
je 0x443f65
mov esi, dword [0xa0bac0]
test esi, esi
je 0x4440ca
mov eax, dword [0xac9fa8]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x28], 0x10
mov dword [0xac9fa8], 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 0x443fd8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4440ca
cmp eax, 0x2746
je 0x4440ca
call fcn.00443940
push eax
push str.NET_GetPacket:__s_n
call fcn.0041d160
add esp, 8
jmp 0x4440ca
mov eax, dword [0xa0cc7c]
cmp esi, eax
jne 0x443feb
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0xa0ccd4]
test ecx, ecx
je 0x44408f
cmp esi, eax
jne 0x44408f
mov ecx, dword [esp + 0x28]
mov edi, 0xa0cc60
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x44408b
mov eax, dword [esp + 0x2c]
mov ecx, 0xa
cmp eax, ecx
jl 0x4440ca
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x4440ca
mov dl, byte [eax + 1]
test dl, dl
jne 0x4440ca
mov dl, byte [eax + 2]
test dl, dl
jne 0x4440ca
cmp byte [eax + 3], 1
jne 0x4440ca
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 + 0x1c], ecx
jmp 0x4440a4
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00443c40
add esp, 8
mov dword [ebp + 0x1c], 0
cmp edi, dword [ebp + 0x10]
jne 0x4440e6
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00429100
push eax
push str.Oversize_packet_from__s_n
call fcn.0041d160
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x443f55
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 0x444100
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
cmp eax, 3
push ebp
jne 0x444115
mov ebp, dword [0xa0cc7c]
jmp 0x444136
cmp eax, 4
jne 0x444122
mov ebp, dword [0xa0cc7c]
jmp 0x444136
cmp eax, 5
je 0x444130
cmp eax, 6
jne 0x444223
mov ebp, dword [0xa0bac0]
test ebp, ebp
je 0x444232
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00443b90
mov eax, dword [0xa0ccd4]
add esp, 8
test eax, eax
je 0x4441cc
cmp dword [esp + 0x20], 4
jne 0x4441cc
mov ax, word [esp + 6]
mov edx, dword [esp + 8]
mov word [0xa0bc64], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [0xa0bc60], edx
push esi
mov esi, dword [esp + 0x20]
mov edx, ecx
push edi
mov edi, 0xa0bc66
mov byte [0xa0bc5c], 0
shr ecx, 2
mov byte [0xa0bc5d], 0
mov byte [0xa0bc5e], 0
mov byte [0xa0bc5f], 1
push 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa0cc60
add eax, 0xa
push 0
and ecx, 3
push eax
push 0xa0bc5c
push ebp
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_sendto
pop edi
pop esi
jmp 0x4441e5
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 0x444232
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x444232
cmp eax, 0x2741
jne 0x44420b
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x444232
cmp eax, 6
je 0x444232
call fcn.00443940
push eax
push str.NET_SendPacket:__s_n
call fcn.0041d160
add esp, 8
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0041d360
add esp, 8
pop ebp
add esp, 0x10
ret
Function at 0x4443c0
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 0x4443f0
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0041d160
add esp, 0xc
jmp 0x4443fd
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0041d160
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x444437
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x44442e
call fcn.00443940
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s_n
call fcn.0041d160
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 0x444468
call fcn.00443940
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0041d160
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 0x44449d
call fcn.00443940
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041d160
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x4444c8
cmp byte [edi], 0
je 0x4444c8
push str.localhost
push edi
call fcn.0042b990
add esp, 8
test eax, eax
je 0x4444c8
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00443ca0
add esp, 8
jmp 0x4444d0
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x4444de
mov word [esp + 0x16], 0
jmp 0x4444e9
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 0x444524
call fcn.00443940
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0041d160
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 0x444930
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 0x44495a
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 0x444978
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.0041d160
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x4449b1
mov esi, 4
push eax
push str.Alias:__s_n
call fcn.0041d160
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
add esi, 4
test eax, eax
jne 0x444996
cmp word [edi + 8], 2
jne 0x444a48
xor eax, eax
mov dword [0xa0ccc8], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x444a48
cmp eax, 0x10
jge 0x444a48
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [0xa0ccc8]
mov dl, byte [esi]
mov dword [esp + 8], eax
mov byte [ecx*4 + 0xa0cc84], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0xa0cc85], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0xa0cc86], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0xa0cc87], 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.0041d160
mov eax, dword [0xa0ccc8]
add esp, 0x14
inc eax
mov dword [0xa0ccc8], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x4449cc
pop edi
pop esi
add esp, 0x104
ret
Function at 0x444b10
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 0x444b57
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x273f
je 0x444b50
call fcn.00443940
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0041d160
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 0x444b86
call fcn.00443940
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0041d160
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 0x444bb9
call fcn.00443940
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0041d160
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 0x444be1
mov word [esp + 0x14], cx
jmp 0x444bec
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 0x444c1e
call fcn.00443940
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0041d160
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 0x444eb0
Capabilities:
Initialize winsock library

Disassembly:
push 0xa0bac8
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x444ed2
push eax
push str.WARNING:_Winsock_initialization_failed__returned__d_n
call fcn.0041d160
add esp, 8
ret
push str.Winsock_Initialized_n
mov dword [0xa0ccd0], 1
call fcn.0041d160
call fcn.00444d60
push 1
call fcn.00444c70
add esp, 8
ret
Function at 0x446aa0
Capabilities:
Hide graphical window

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

Function at 0x446ae0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xa0d5a4], eax
mov eax, dword [0xa0d5a0]
cmp ecx, eax
je 0x446b58
mov edx, dword [0xa0d118]
mov dword [0xa0d5a0], ecx
test edx, edx
je 0x446b58
mov eax, ecx
sub eax, 0
je 0x446b4f
dec eax
je 0x446b2c
dec eax
je 0x446b22
push ecx
push str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
call fcn.00442800
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 [0xa0d11c]
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 0x467400
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 [0x110d4e4], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x110d4dc], eax
call esi
push 0x110d4e0
push 0
push 0
mov dword [0x110d4cc], eax
mov eax, dword [esp + 0x14]
push 0x4673e0
push 0
push 0
mov dword [0x110d4d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x110d4d4], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x478fa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x478fd0
push esi
call fcn.00489e80
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x478fc9
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 0x479003
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x478ff8
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 0x479023
cmp eax, 0xcc
je 0x479023
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 0x479046
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 0x479071
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 0x479053
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 0x479480
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x11e985c]
sub esp, 0x694
test eax, eax
je 0x479612
mov eax, dword [0x11e8800]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x479612
mov eax, dword [0x110d4a4]
test eax, eax
je 0x479612
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 0x4794d9
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
jne 0x479595
cmp dword [esp + 0x20], 2
jne 0x479595
push str.performing_W2K_gamma_clamp._n
call fcn.0041d310
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 0x47956e
lea ebx, [edx + 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x479559
cmp word [esi], 0xfe00
jbe 0x47958a
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x47954c
jmp 0x4795a2
push str.skipping_W2K_gamma_clamp._n
call fcn.0041d310
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 0x4795c1
mov word [eax], cx
add eax, 2
dec edx
jne 0x4795b5
add esi, 0x200
dec edi
jne 0x4795ae
mov eax, dword [0x11d9410]
pop edi
pop esi
pop ebp
pop ebx
lea edx, [esp + 0x94]
test eax, eax
push edx
je 0x4795f5
mov ecx, dword [0x110d4a4]
push ecx
call eax
add esp, 0x694
ret
mov eax, dword [0x110d4a4]
push eax
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x479612
push str.SetDeviceGammaRamp_failed._n
call fcn.0041d160
add esp, 4
add esp, 0x694
ret