joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x257
lea eax, [ebp - 0x327]
mov dword [ebp - 0x330], ecx
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 4
push 0
push 5
push SysReAllocString
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409831
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x32c]
mov dword [ebp - 0x334], eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40982a
test esi, esi
je 0x40982a
push 0
push 0
push 0
push 5
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4097b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00451650
mov edx, dword [ebp - 0x334]
lea eax, [ebp - 0xd0]
push eax
mov ecx, ebx
call fcn.0040ecd0
mov ebx, dword [ebp - 0x330]
push 0x64
push 0
push ebx
call fcn.00451650
lea eax, [ebp - 0xd0]
push eax
push 0x48072c
push ebx
call fcn.0045671f
add esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
je 0x409814
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x409bc0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x481200
push 0x84
push 0
mov ebx, ecx
mov dword [ebp - 0x260], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409c45
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x409c45
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x409c45
cmp eax, 0x2000
ja 0x409c45
push eax
push esi
push ebx
call fcn.00451000
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x25c]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x409c80
mov eax, dword [str..json]
push 0
push 0x80
push 3
mov dword [ecx], eax
mov ax, word [0x481210]
push 0
push 0
mov word [ecx + 4], ax
lea eax, [ebp - 0x25c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409cd4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x260]
push eax
push 0x2000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebp - 0x260]
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x40a0c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xff
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
mov esi, ecx
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40a11b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
lea eax, [ebp - 0x128]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x108]
movdqu xmmword [ebp - 0x128], xmm0
push eax
movdqu xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x124], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40a10a
mov eax, dword [ebp - 0x12c]
push 0x10
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call fcn.00455f80
add esp, 0xc
push dword [ebp - 0x12c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x40a700
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a7c7
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push esi
mov dword [ebp - 8], 1
call edi
xor eax, eax
mov dword [ebp - 8], 1
push 4
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
push 0xffffff7f
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push 0x1001
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push 0x1002
push 0xffff
push esi
call edi
push ecx
mov ecx, esi
call fcn.0040f060
add esp, 4
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40a7da
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 4
push 0xffff
push esi
call edi
test eax, eax
jne 0x40a7c0
mov edi, dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov eax, 2
push 0
movq qword [ebp - 0x1a], xmm0
mov word [ebp - 0x1c], ax
call edi
push 0
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40a7c0
mov dword [ebp - 0x22], eax
xorps xmm0, xmm0
mov word [ebp - 0x1e], ax
mov eax, 2
push 0xfff1
movq qword [ebp - 0x2a], xmm0
mov word [ebp - 0x2c], ax
call edi
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40a880
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40a7c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x40cbf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6afdcc], 0
jne 0x40cc3d
push 0xfde80
call fcn.00451e73
add esp, 4
mov dword [0x6afdcc], eax
test eax, eax
jne 0x40cc2d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0xfde80
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x40cb60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40cc66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], eax
setne al
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x40d6d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x484210
push 0x458ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x4a2300]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor eax, eax
mov word [ebp - 0x30], ax
xorps xmm0, xmm0
movq qword [ebp - 0x2e], xmm0
mov dword [ebp - 0x26], eax
mov word [ebp - 0x22], ax
mov word [ebp - 0x40], ax
movq qword [ebp - 0x3e], xmm0
mov dword [ebp - 0x36], eax
mov word [ebp - 0x32], ax
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
neg eax
sbb eax, eax
inc eax
je 0x40d806
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
neg eax
sbb eax, eax
inc eax
je 0x40d806
mov dword [ebp - 0x210], 0
push 0x1cc
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00451650
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.00401fb0
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x40d806
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x1ac]
push dword [ebp - 0x1b0]
mov edx, esi
mov ecx, edi
call fcn.0040d240
add esp, 0x10
cmp eax, 1
jne 0x40d7ff
mov dword [ebp - 4], 0
mov edx, esi
mov ecx, edi
call fcn.0040ce90
mov dword [ebp - 4], 0xfffffffe
jmp 0x40d7ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x40d9d0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
mov esi, ecx
mov dword [ebp - 8], 1
push 6
push esi
call edi
test eax, eax
je 0x40da14
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0xffffff7f
push 0xffff
push esi
call edi
test eax, eax
jne 0x40da02
push ecx
mov ecx, esi
call fcn.0040f120
add esp, 4
test eax, eax
je 0x40da02
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x40da02
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push 0x1002
push 0xffff
push esi
call edi
test eax, eax
jne 0x40da02
mov ecx, esi
call fcn.0040f1d0
test eax, eax
je 0x40da02
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push esi
push 0x40d940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40dab1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x40dc80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp - 0x14], eax
test ax, ax
je 0x40dde3
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
test esi, esi
je 0x40dcd4
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dcc0
sub ecx, edx
je 0x40dcd4
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp bl, 0x7f
jne 0x40dde3
mov eax, 0x6afde4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
cmp dword [eax + 4], ebx
jne 0x40dcf1
cmp word [eax], dx
je 0x40dd33
add ecx, 0xc
add eax, 0xc
cmp ecx, 0x5dc0
jb 0x40dce4
xor edi, edi
cmp dword [edi + 0x6afde0], 0
jne 0x40ddd0
mov ecx, ebx
mov word [edi + 0x6afde4], dx
mov dword [edi + 0x6afde8], ebx
call fcn.0040f220
mov esi, eax
test esi, esi
jne 0x40dd49
mov dword [edi + 0x6afde0], eax
jmp 0x40ddd0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2000
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40ddb9
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x2000
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40ddb9
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40ddb9
push 0x1e
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x40ddc2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
mov dword [edi + 0x6afde0], esi
test esi, esi
jne 0x40dd33
add edi, 0xc
cmp edi, 0x5dc0
jae 0x40dde3
mov edx, dword [ebp - 0x14]
jmp 0x40dd01
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x40e200
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x4a2300]
xor eax, esp
mov dword [esp + 0x19c], eax
cmp dword [0x6b5be0], 0
jne 0x40e2c8
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00451650
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40e2c8
call fcn.0040ee00
cmp dword [0x6b5ba8], 0
mov dword [0x6b5bd8], eax
mov dword [0x6b5bdc], edx
jne 0x40e29a
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0
push 0x40dbf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 4], 0
mov dword [0x6b5ba8], eax
je 0x40e2c8
cmp dword [0x6b5be0], 0
jne 0x40e2c8
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0
push 0x40e170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6b5be0], eax
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x40ecd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x4a2300]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, edx
xor eax, eax
mov byte [esp + 0x68], 0
push 0x42
push eax
mov word [esp + 0x80], ax
mov edi, ecx
lea eax, [esp + 0x82]
movq qword [esp + 0x71], xmm0
push eax
mov dword [esp + 0x7d], 0
mov word [esp + 0x81], 0
mov byte [esp + 0x83], 0
call fcn.00451650
push esi
mov edx, edi
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0040e400
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x68]
call fcn.0040e4d0
xor edi, edi
lea esi, [esp + 0x7a]
lea esp, [esp]
mov bl, byte [esp + edi + 0x68]
movzx eax, bl
push eax
push str._02x
lea eax, [esi - 2]
push 2
push eax
call fcn.0040e3e0
shl bl, 4
movzx eax, bl
push eax
push str._02x
push 2
push esi
call fcn.0040e3e0
inc edi
add esp, 0x20
add esi, 4
cmp edi, 0x10
jl 0x40ed90
xor eax, eax
mov word [esp + 0xb8], ax
lea eax, [esp + 0x78]
push eax
push 0x21
push dword [esp + 0x14]
call fcn.00453937
mov ecx, dword [esp + 0xd0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x40f220
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 6
mov eax, 2
mov dword [ebp - 0xe], 0
xorps xmm0, xmm0
mov word [ebp - 0xa], 0
push 1
movq qword [ebp - 0x16], xmm0
push eax
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], dx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f28b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40f29c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0xffffff7f
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40f284
push ecx
mov ecx, esi
call fcn.0040f120
add esp, 4
test eax, eax
je 0x40f284
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x40f284
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40f284
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x4143df
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, 0x80
push eax
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor edi, edi
lea eax, [ebp - 0x14]
push edi
push eax
push edi
xorps xmm0, xmm0
push 0x30
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 1
push 0x96
sub eax, 0xa0
push 0x1c2
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
sub eax, 0x1cc
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
mov ecx, esi
call sym.STSGameSDK.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x414a5b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 4
push 0x4711b4
push 0x4711c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x414aa1
mov eax, dword [0x4a4508]
test eax, eax
je 0x414a90
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
and dword [0x4a4508], 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CloseWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret 4
Function at 0x415064
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x4715a0
push 0xa8
xor edi, edi
mov dword [ebp - 0x8c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4150a2
xor eax, eax
jmp 0x415144
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x90], eax
push esi
test eax, eax
jne 0x4150bd
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x41509b
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jae 0x4150ce
push esi
jmp 0x4150b5
push ebx
push edi
call fcn.00451e73
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4150e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x415143
push edi
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00451000
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x8c]
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
lea eax, [ebp - 0x88]
push eax
call sym.STSGameSDK.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
pop ecx
pop ecx
mov ecx, eax
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetCurrentPath_wchar_t_const__
pop ecx
lea ecx, [ebp - 0x88]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push edi
push ebx
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
pop ecx
xor eax, eax
pop ecx
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x418df4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x419889
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x4198ac
or esi, 1
push 1
call edi
test ax, ax
jns 0x4198b8
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4198c4
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4198d0
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret