joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418af0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443418
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov byte [esi + 5], 1
mov eax, dword [esi]
test eax, eax
jne 0x418b27
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ebx
push edi
xor edi, edi
mov al, byte [esi + 4]
test al, al
je 0x418b60
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jae 0x418b49
push 0xa
call ebx
inc edi
mov al, byte [esi + 4]
test al, al
jne 0x418b38
mov al, byte [esi + 4]
test al, al
je 0x418b60
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x418c61
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x10]
push ebp
push edi
mov dword [esp + 0x14], edi
call ebx
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x28]
push eax
mov dword [esp + 0x34], 0
mov edx, dword [eax]
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.00418ee0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebp, [esi + 0x38]
push ebp
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
jbe 0x418c59
lea eax, [esi + 0x54]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x28], ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x7c]
add esp, 4
add edx, 4
dec ecx
mov dword [esi + 0x5c], edx
mov eax, edx
mov dword [esi + 0x7c], ecx
je 0x418be5
cmp eax, dword [esi + 0x58]
jne 0x418c4e
mov eax, dword [esi + 0x60]
lea ecx, [eax + 4]
mov dword [esi + 0x60], ecx
mov edx, dword [eax]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x7c]
add esp, 4
test eax, eax
jne 0x418c33
lea ebx, [esi + 0x54]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
xor edi, edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x74]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x418c4e
mov eax, dword [esi + 0x60]
lea ebx, [esi + 0x54]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edi, ecx
lea edx, [ecx + 0x1000]
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x7c]
test eax, eax
ja 0x418ba5
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi], 0
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41a2a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], ecx
mov dword [esi + 0x1ac], edx
mov edi, dword [eax + 8]
test edi, edi
jne 0x41a301
mov edx, dword [str.dnf.conn.gamesafe.qq.com]
xor ecx, ecx
test edx, edx
je 0x41a2fb
mov dx, word [eax]
mov eax, 0x44717c
cmp word [eax - 4], dx
je 0x41a2f0
mov edi, dword [eax + 8]
add eax, 8
inc ecx
test edi, edi
jne 0x41a2dd
jmp 0x41a2fb
mov edi, dword [ecx*8 + 0x44717c]
test edi, edi
jne 0x41a301
mov edi, dword [str.connunify.gamesafe.qq.com]
mov ecx, esi
call fcn.00420210
test eax, eax
je 0x41a32e
push str.pack_Init_Error_
push 0
push 0
push 0
push 0x138e
call fcn.00417c00
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
ret 0xc
push edi
lea ecx, [esi + 4]
call fcn.0041f690
test eax, eax
je 0x41a365
push str.m_Socket.Init_Error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3ed
push 0
push 0x1389
call fcn.00417c00
add esp, 0x14
mov eax, 0xfffffffd
pop edi
pop esi
ret 0xc
push 0
push 0
push esi
push 0x41a3d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa8], eax
jne 0x41a3a5
push str._SECCLI:TCP__m_MainCtrl_CreateThread_failed
push eax
push 0x3f7
push 0x3f7
call fcn.00417b30
add esp, 0x10
mov eax, 0xfffffffc
pop edi
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x41f690
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push ebx
push esi
push eax
mov ebx, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41f6df
push str.WSAStartup_failed_
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3e9
push 0
push 0x1389
call fcn.00417c00
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x294
ret 4
push edi
mov ecx, 0x20
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
pop edi
jne 0x41f724
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x294
ret 4
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x41f743
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x294
ret 4
lea eax, [esp + 8]
push str._Specify_Ip_
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x41f767
pop esi
mov eax, 0xfffffffc
pop ebx
add esp, 0x294
ret 4
lea ecx, [esp + 8]
push 0x44cb84
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41f7a1
push esi
push 0x7f
push ebx
call dword [sym.imp.MSVCRT.dll_fgets]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
xor eax, eax
pop esi
pop ebx
add esp, 0x294
ret 4
mov eax, dword [esp + 0x2a0]
test eax, eax
jne 0x41f7d5
push str.pszSvrAddr_is_NULL_
push eax
push 0x3f7
push eax
push 0xbb8
call fcn.00417c00
add esp, 0x14
mov eax, 0xfffffffb
pop esi
pop ebx
add esp, 0x294
ret 4
push eax
push 0x44b5c0
push 0x7f
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
xor eax, eax
pop esi
pop ebx
add esp, 0x294
ret 4
Function at 0x41f8f0
Capabilities:
Resolve dns

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x41f977
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esi + 0x80]
cmp eax, 0xffffffff
mov dword [ecx], eax
je 0x41f920
test eax, eax
je 0x41f920
pop edi
pop esi
xor eax, eax
pop ebp
ret
push ecx
push esi
mov dword [ecx], 0
call fcn.004231d0
add esp, 8
test eax, eax
jge 0x41f956
push str.gethostbyname_failed_and_GetIPFromIPList_Fail_
push 0
push 0x3ed
push 0
push 0xbb8
call fcn.00417c00
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
push str.gethostbyname_failed_and_GetIPFromIPList_Success_
push 0
push 0x3ea
push 0
push 0xbb8
call fcn.00417c00
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [eax], 0
je 0x41f990
mov ecx, dword [eax + 4]
add eax, 4
inc edi
test ecx, ecx
jne 0x41f981
test edi, edi
jne 0x41f9b4
push str.no_ip_got_
push 0
push 0x3e9
push 0
push 0xbb8
call fcn.00417c00
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
ret
push ebx
push 0
lea ebx, [esi + 0x80]
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
div edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx]
push eax
push esi
mov dword [ebx], eax
call fcn.004232d0
add esp, 0xc
test eax, eax
je 0x41fa06
mov edx, dword [ebx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0
push 0x3f6
push 0
push 0xbb8
call fcn.00417c00
push ebx
push esi
call fcn.004231d0
add esp, 0x1c
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x41fd90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x84], eax
je 0x41ff7e
cmp dword [esp + 0x124], 5
jae 0x41fdce
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x10c
ret 8
mov ebx, dword [esp + 0x120]
push 5
push ebx
mov ecx, esi
call fcn.0041ffe0
xor ebp, ebp
cmp eax, ebp
jge 0x41fdfe
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x10c
ret 8
jne 0x41fe12
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x10c
ret 8
cmp eax, 5
mov edi, eax
jae 0x41fe7a
mov eax, 5
lea ecx, [edi + ebx]
sub eax, edi
push eax
push ecx
mov ecx, esi
call fcn.0041ffe0
cmp eax, ebp
jl 0x41feae
jle 0x41fe36
add edi, eax
jmp 0x41fe75
mov eax, dword [esi + 0x84]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
push ebp
lea ecx, [esp + 0x20]
push ebp
inc eax
push ecx
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x41fec7
cmp eax, ebp
je 0x41feff
cmp edi, 5
jb 0x41fe19
mov edx, dword [ebx + 1]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
mov eax, dword [esp + 0x124]
cmp eax, ebx
jae 0x41ff18
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10c
ret 8
push str.select_error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3e9
push ebp
push 0x138a
call fcn.00417c00
add esp, 0x14
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffff9
pop ebx
add esp, 0x10c
ret 8
cmp edi, ebx
jae 0x41ff7c
mov ecx, dword [esp + 0x120]
mov eax, ebx
sub eax, edi
lea edx, [edi + ecx]
push eax
push edx
mov ecx, esi
call fcn.0041ffe0
cmp eax, ebp
jl 0x41ff8b
jle 0x41ff3d
add edi, eax
jmp 0x41ff78
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
push ebp
lea edx, [esp + 0x20]
push ebp
inc eax
push edx
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x41ffa4
cmp eax, ebp
je 0x41ffbd
cmp edi, ebx
jb 0x41ff1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x10c
ret 8
Function at 0x41ffe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx + 0x84]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x420031
jne 0x420020
push str.server_close_connection_
push 0
push 0x3f7
push 0
push 0x138c
call fcn.00417c00
add esp, 0x14
or eax, 0xffffffff
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfe
ret 8

Function at 0x420040
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x84], eax
je 0x4200e8
mov ebx, dword [esp + 0x124]
test ebx, ebx
jne 0x420078
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x10c
ret 8
xor edi, edi
test ebx, ebx
jbe 0x4200e6
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x120]
mov eax, ebx
sub eax, edi
lea edx, [edi + ecx]
push eax
push edx
mov ecx, esi
call fcn.00420140
test eax, eax
jl 0x4200f5
jle 0x4200a5
add edi, eax
jmp 0x4200e2
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], 0
call ebp
cmp eax, 0xffffffff
je 0x42010e
test eax, eax
je 0x420127
cmp edi, ebx
jb 0x420084
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.0041fd50
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10c
ret 8

Function at 0x4201a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [ecx + 0x84]
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x4201b4
xor eax, eax
add esp, 0x14
ret
xor ecx, ecx
lea edx, [esp]
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 8]
inc eax
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x14
ret

Function at 0x420860
Capabilities:
Create thread

Disassembly:
call fcn.004208a0
test eax, eax
mov dword [0x454ea4], eax
jne 0x42088d
push eax
push eax
push eax
push 0x4208d0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x420886
or eax, 0xffffffff
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x454ea0], 1
xor eax, eax
ret
Function at 0x423560
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 1
mov byte [esp + 0x1e], 2
mov byte [esp + 0x1f], 4
mov byte [esp + 0x20], 5
mov byte [esp + 0x21], 7
mov byte [esp + 0x22], 8
mov byte [esp + 0x23], 0xa
mov byte [esp + 0x24], 0xb
mov byte [esp + 0x25], 0xc
mov byte [esp + 0x26], 0x10
mov byte [esp + 0x27], 0x16
mov byte [esp + 0x28], 0x17
mov byte [esp + 0x29], 0x1a
xor eax, eax
mov dl, byte [esp + eax + 0x1c]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x4235b7
xor ecx, ecx
mov edx, ebp
mov eax, ecx
mov edi, 8
test al, 1
je 0x4235e6
shr eax, 1
xor eax, esi
jmp 0x4235e8
shr eax, 1
dec edi
jne 0x4235dc
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x4235d5
lea edi, [ebp + 0x400]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], edi
mov ecx, dword [edi - 0x400]
mov edx, ecx
mov eax, ecx
and edx, 0xff
mov esi, ecx
mov ebx, edx
and eax, 0xff00
shl ebx, 0x10
shr esi, 8
add eax, ebx
mov ebx, esi
shl eax, 8
and ebx, 0xff00
add eax, ebx
mov ebx, 3
shr ecx, 0x18
add eax, ecx
mov dword [edi + 0xc00], eax
mov ecx, dword [esp + 0x18]
add edi, 0x400
mov ecx, dword [ecx + edx*4]
xor ecx, esi
mov edx, ecx
mov eax, ecx
and edx, 0xff
mov esi, ecx
mov ebp, edx
and eax, 0xff00
shl ebp, 0x10
shr esi, 8
add eax, ebp
mov ebp, esi
shl eax, 8
and ebp, 0xff00
mov dword [edi - 0x400], ecx
add eax, ebp
shr ecx, 0x18
add eax, ecx
dec ebx
mov dword [edi + 0xc00], eax
jne 0x423649
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jne 0x42360b
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x425180
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x4251ff
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor eax, eax
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
sub eax, 0x61c88647
add ebp, ecx
lea ecx, [ebx + ebp]
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebp, edx
cmp eax, 0xc6ef3720
lea edx, [ebx + ebp]
jne 0x4251a0
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [edi + 4], edx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x425199
pop edi
pop ebp
pop ebx
call fcn.004250f0
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 1
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc

Function at 0x425220
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x42529d
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, 0xc6ef3720
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
add eax, 0x61c88647
add ebx, ebp
sub ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebx, ebp
sub edx, ebx
test eax, eax
jne 0x425243
mov eax, dword [esp + 0x14]
mov dword [edi], edx
mov dword [edi + 4], ecx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x425239
pop edi
pop ebp
pop ebx
call fcn.004250f0
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 0
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc
Function at 0x441c40
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441c69
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x45877c]
add esp, 4
test eax, eax
je 0x441c69
mov eax, dword [0x458778]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x4fbc45
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
not dh
rdtsc
mov dword [esp], 0x454c00
call fcn.004f735d

Function at 0x4fc00e
Capabilities:
Execute anti-debugging instructions

Disassembly:
stosw word es:[edi], ax
jmp 0x505bc0
bt bp, 0xa
cmp dword [ebp - 0x14], 0x12c
pushfd
pushfd
pushfd
mov dword [esp], esp
lea esp, [esp + 0x30]
jb 0x4fbc17
btr cx, cx
mov dword [ebp - 0x14], 0x12b
lea ecx, [esp - 0x71f0518b]
mov dword [ebp - 4], 0
bsr cx, sp
bsf di, ax
shld cx, bp, cl
bsr cx, di
mov dword [ebp - 0x20], str.report.gamesafe.qq.com
bsf cx, bx
bsf di, dx
jmp 0x4fc21b
mov byte [ebp - 0x12c], 0
xadd dx, di
cmc
pushfd
sbb di, 0x8ea5
mov ecx, 0x40
stc
jmp 0x4ff002
bsf di, bp
sub eax, eax
lea edx, [edi*8 + 0x69a0ee89]
lea edi, [ebp - 0x12b]
movsx dx, cl
lea edx, [esi - 0x5d230491]
pop edx
setp dh
rep stosd dword es:[edi], eax
pushal
pushfd
mov ch, cl
jmp 0x4f7a03
mov dword [esp + 0x20], 0
push 0xc2308ac6
mov eax, dword [ebp + 8]
not dl
movzx cx, bl
xchg dword [esp + 0x20], eax
movzx dx, dl
mov ecx, dword [ebp - 0x18]
cdq
mov dword [esp + 0x1c], ecx
pushfd
mov edx, dword [ebp - 0x14]
mov byte [esp + 4], 0x56
movsx ax, bl
mov dword [esp + 0x1c], edx
movsx ax, dl
not al
lea eax, [ecx + 0x6bfa3ae4]
mov dword [esp + 0x18], str.type_dnumber_dreserved_duserid_duserid2_dgameid_d
movsx eax, cl
mov dword [esp + 0x14], 0x103
call fcn.004fb7d9
mov dword [ebp - 0x28], 0
rol ch, 3
mov dword [ebp - 0x340], 0
shrd cx, bp, cl
mov byte [ebp - 0x33c], 0
neg dx
mov ecx, 0x81
inc di
neg di
xor eax, eax
jmp 0x5072dc
movsx cx, dl
stosb byte es:[edi], al
xor cl, 0xf6
pushfd
add dh, 0x6d
shl dl, 1
mov dword [ebp - 0x130], 0
shl di, cl
add cx, sp
dec dl
jmp 0x503dda
xchg di, dx
mov word [esp], dx
push dword [esp]
lea edi, [ebp - 0x33b]
push ecx
rep stosd dword es:[edi], eax
not dl
movsx cx, bl
bswap cx
stosw word es:[edi], ax
movsx dx, al
sete cl
stosb byte es:[edi], al
movsx ax, bl
rdtsc
seto al
cwde
mov dword [ebp - 0x134], 0
rdtsc
mov dword [ebp - 0x1c], 0
rdtsc
mov ah, 0x69
mov dword [ebp - 0x24], 0x7530
pop ecx
mov dword [esp + 0x28], 0
lea eax, [ebx + 0x41233dd9]
mov dword [esp + 0x24], 0
jmp 0x501ad4
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x82bff8
push eax
push dword fs:[0]
mov edi, 0x64500082
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
mov ecx, 0xd4e4027f
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
mov ebx, 0xa4e81020
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [edi], edx
stosd dword es:[edi], eax
loop 0x4010a6
shr byte [edx - 0x45d61c4d], 1
arpl word [edi - 0x278de9a], dx
sub dword [edx + 0x21669763], edi
xchg ebp, edi
jo 0x4010b7
adc byte [ebx - 0x7b], dh
jae 0x40102e
xlatb
in al, dx
scasd eax, dword es:[edi]
rol dword [0xffffd0cf], 1
fisub dword [edx + 0x3d]
xchg edi, eax
xchg ebp, eax
push 0xa7e35ce0
iretd
loopne 0x401115
jecxz 0x401062
jmp 0x4010fb
inc edi
inc ebp
invalid
mov eax, dword [edi]
jmp 0x4010de
push es
aas
dec esp
sbb al, 0xb2
or ecx, esi
pushal
jp 0x40110e
xchg dword [edi], edi
push ebp
arpl word [edx], bx
xchg ebp, eax
and dword [ecx + 0x73], 0x27
push esi
leave
adc bh, byte [0xf1cfcb47]
mov ecx, dword [esi + 0x2afe0d5e]
push ebx
lcall 0x58e9, 0xe192ed67
pop eax
outsb dx, byte [esi]
sub byte [eax + 0x15], ah
mov ecx, 0x775fedc3
test byte [eax + 0x35], ch
setb byte [edi + eax*8 - 0x62]
inc edi
in eax, dx
sub cl, byte [eax - 0x71]
jbe 0x401126
dec edi
iretd
Function at 0x10e32
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x18704
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0xf3e086b8
call fcn.000242a0
xor edx, edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x1878d
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, dword [eax + 0x78]
add esi, ecx
mov edi, dword [esi + 0x1c]
add edi, ecx
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x18786
mov ecx, dword [ebx + edx*4]
add ecx, dword [ebp + 8]
movzx eax, word [eax + edx*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0xf3e05352
push ecx
call dword [0xf3e05dbc]
pop ecx
pop ecx
test eax, eax
jne 0x18774
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1878f
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jmp 0x1873b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.000242e5
ret 4