joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453b11
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
lea ecx, [esp + 4]
push ecx
push ebx
lea eax, [esi + 8]
push eax
push 0x4544c7
push ebx
push ebx
mov byte [esi + 0x20], bl
mov dword [eax], esi
mov dword [esi + 0xc], ebx
call sub.MSVCR80.dll__beginthreadex
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x453b41
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
pop ebx
jne 0x453b4f
mov byte [esi + 0x20], 1
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x455d79
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push 0x19c
mov eax, 0x4a64d6
call fcn.00476feb
mov edi, ecx
lea ecx, [ebx + 4]
mov dword [ebp - 0x1a8], ebx
mov dword [ebx], vtable.Network::CCommunication_class_Network::CQMPacket_.0
call fcn.00442d80
and dword [ebp - 4], 0
lea esi, [ebx + 0x20]
call fcn.004563fd
lea esi, [ebx + 0x2c]
mov byte [ebp - 4], 1
call fcn.004563fd
lea esi, [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.004563fd
mov byte [ebp - 4], 3
and dword [ebx + 0x350], 0
lea ecx, [ebx + 0x354]
call fcn.00443d60
mov byte [ebx + 0x364], 0
lea ecx, [ebx + 0x368]
call fcn.00442d80
mov byte [ebp - 4], 5
call fcn.00456fef
lea ecx, [ebx + 0x388]
mov dword [ecx], eax
mov byte [eax + 0x21], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
and dword [ebx + 0x38c], 0
mov byte [ebp - 4], 6
mov dword [ebx + 0x390], edi
mov edi, dword [edi + 0x10]
lea eax, [ebx + 0x394]
inc edi
inc edi
push eax
call fcn.0045661c
lea esi, [ebx + 0x3a8]
mov byte [ebx + 0x3a4], 0
mov ecx, esi
call fcn.00442d10
mov eax, 0x4570ce
mov dword [esi + 0x14], eax
mov dword [esi], vtable.._AV__Thread_U__BindMember0_V__CCommunication_VCQMPacket_Network___Network__P812_AEXPAX_Z_fund___fund__.0
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], ebx
mov byte [esi + 0x18], 1
lea eax, [ebp - 0x1a0]
push eax
push 0x101
mov byte [ebx + 0x3c4], 0
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x148], edi
mov dword [ebx + 0x24c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [ebp - 0x1a4]
push ecx
push edi
lea eax, [esi + 8]
push eax
push 0x456aa0
push edi
push edi
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], edi
call sub.MSVCR80.dll__beginthreadex
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x455eb4
mov dword [esi + 4], edi
cmp dword [esi + 4], edi
jne 0x455ebd
mov byte [esi + 0x18], 1
mov eax, ebx
call fcn.00477035
ret
Function at 0x4573aa
Capabilities:
Set socket configuration

Disassembly:
push 4
mov eax, 0x4a5bfa
call fcn.00476f82
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov word [edi + 0xc], 1
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi], vtable.Network::CTcpClient_class_Network::CQMPacket_.0
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.0045322c
lea esi, [edi + 0x34]
mov byte [ebp - 4], 2
call fcn.0045322c
cmp ebx, 0xffffffff
mov byte [ebp - 4], 3
je 0x457458
push 1
push ebx
call fcn.004456f0
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
pop ecx
pop ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1002
mov ebx, 0xffff
push ebx
push dword [ebp + 0x14]
mov dword [edi + 0x14], 2
mov dword [ebp + 0xc], 0x10000
call esi
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1001
push ebx
push dword [ebp + 0x14]
call esi
push edi
push dword [edi + 0x10]
push edi
call fcn.004591d7
mov eax, edi
call fcn.00477021
ret 0x10

Function at 0x4574a9
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x4d2a20]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
call fcn.0044f7a0
pop ecx
push 1
push eax
mov dword [edi + 0x10], eax
call fcn.004456f0
test al, al
pop ecx
pop ecx
je 0x457539
mov ax, word [esi + 0x20]
push 1
mov word [esp + 0x10], 2
mov word [esp + 0x12], ax
call fcn.0044f66f
mov dword [esp + 0x10], eax
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x10]
mov dword [edi + 0x14], 1
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x457521
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x457539
push edi
push dword [edi + 0x10]
push edi
call fcn.00459229
push edi
push dword [edi + 0x10]
push edi
call fcn.0045927b
mov al, 1
jmp 0x457548
push dword [edi + 0x10]
call fcn.00445690
or dword [edi + 0x10], 0xffffffff
xor al, al
pop ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0047676d
mov esp, ebp
pop ebp
ret 4
Function at 0x45b457
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
or dword [ebx + 0x30], 0xffffffff
or dword [ebx + 0x34], 0xffffffff
mov dword [ebx], eax
mov word [ebx + 4], ax
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], al
mov byte [ebx + 0xd], al
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x14], al
mov word [ebx + 0x16], ax
mov word [ebx + 0x18], ax
mov word [ebx + 0x1a], ax
mov word [ebx + 0x1c], ax
mov byte [ebx + 0x1e], al
mov byte [ebx + 0x1f], al
mov byte [ebx + 0x20], al
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov word [ebx + 0x44], ax
mov word [ebx + 0x46], ax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x54], eax
movzx eax, word [ebp + 0x10]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp + 0x1c]
push 7
pop ecx
mov esi, edx
mov byte [ebx + 0x21], 0xff
lea edi, [ebx + 0x64]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x88], eax
call fcn.0045bb12
and dword [ebx + 0x94], 0
push 0
mov dword [ebx + 0x90], eax
call sub.MSVCR80.dll__time32
pop ecx
mov dword [ebx + 8], eax
call fcn.00453247
mov eax, dword [eax + 0x34]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x54]
mov dword [ebx], eax
mov ax, word [ebp + 0x10]
mov word [ebx + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x48], eax
mov al, byte [ebx + 0x78]
mov byte [ebx + 0x14], al
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x88]
mov ecx, 0xffff
cmp eax, ecx
pop edi
mov byte [ebx + 0xc], 1
pop esi
ja 0x45b55e
movzx ecx, ax
mov word [ebx + 0x1a], cx
mov eax, ebx
pop ebp
ret 0x20
Function at 0x45bdcd
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [0x4d61a4]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 8], eax
je 0x45bdfa
sub eax, dword [0x4d78f0]
cmp eax, 0x3e8
jae 0x45bdfa
mov eax, edi
jmp 0x45be0f
push esi
push 0x3c
mov dword [ebp - 4], ebx
call sub.MSVCR80.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x45be13
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
push ebx
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x45be5e
push esi
call sub.MSVCR80.dll_free
cmp dword [ebp - 4], 0xb2c
pop ecx
jbe 0x45be3d
xor eax, eax
inc eax
mov dword [0x4d61a4], eax
jmp 0x45be9d
push dword [ebp - 4]
call sub.MSVCR80.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x45be53
mov eax, dword [0x4d61a4]
jmp 0x45be0e
push ebx
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, ebx
jne 0x45be8e
mov ecx, dword [esi]
xor edx, edx
cmp ecx, ebx
jbe 0x45be7e
lea eax, [esi + 4]
cmp dword [eax], ebx
jne 0x45be76
cmp dword [eax + 4], ebx
je 0x45be8e
inc edx
add eax, 0x38
cmp edx, ecx
jb 0x45be6d
push esi
call sub.MSVCR80.dll_free
mov dword [0x4d61a4], ebx
xor eax, eax
jmp 0x45be9c
push esi
call sub.MSVCR80.dll_free
xor eax, eax
inc eax
mov dword [0x4d61a4], eax
pop ecx
mov ecx, dword [ebp - 8]
mov dword [0x4d78f0], ecx
jmp 0x45be0e
Function at 0x45bee3
Capabilities:
Resolve dns

Disassembly:
push 0x50
mov eax, 0x4a3bf1
call fcn.00476f82
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00406abb
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.0045c36c
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x1c]
call fcn.00465e77
mov edi, esi
lea esi, [ebp - 0x14]
call fcn.00465e5c
test al, al
jne 0x45bf44
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00437d8a
test al, al
jne 0x45bf44
mov eax, esi
jmp 0x45bf53
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x24]
call fcn.00465e77
mov eax, esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], eax
call fcn.00406b99
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x24]
call fcn.00465e77
mov edi, esi
lea esi, [ebp - 0x1c]
call fcn.00465e5c
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x45bfe2
cmp dword [ebp - 0x1c], 0
jne 0x45bf96
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax + 4]
jne 0x45bfa6
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax + 4]
jne 0x45bfb9
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp - 0x10]
neg esi
sbb esi, esi
and esi, 0x6c0840
mov dword [ebp - 0x18], eax
add esi, 0x1d4c0
call edi
mov ecx, dword [ebp - 0x18]
add esi, ecx
cmp esi, eax
jbe 0x45bfe2
mov eax, dword [ebp - 0x10]
jmp 0x45c038
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45bff8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x45bffa
xor esi, esi
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00406abb
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 1
call fcn.0045c10d
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x5c]
mov dword [eax + 4], edi
call fcn.00406b99
cmp dword [ebx + 8], 0x64
jbe 0x45c036
push ebx
call fcn.0045c040
mov eax, esi
call fcn.00477021
ret 4
Function at 0x45d45a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [edi + 0x2c]
test eax, eax
push ebx
push esi
je 0x45d466
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0xc]
jne 0x45d474
lea eax, [edi + 0x24]
call fcn.004533b8
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x45d47e
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0xc]
je 0x45d488
xor al, al
jmp 0x45d4d8
call fcn.00453247
cmp dword [edi + 4], 0
push 0
sete cl
mov esi, eax
push ecx
movzx ecx, byte [edi]
push ecx
call fcn.0045caf7
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [edi + 0x10]
call ebx
sub eax, dword [esi + 0x4c]
add dword [esi + 0x24], eax
mov esi, dword [edi + 0x10]
call ebx
sub eax, dword [esi + 0x4c]
add dword [esi + 0x28], eax
mov esi, edi
call fcn.0045d2cf
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 8]
jae 0x45d4d6
mov ecx, edi
call fcn.0045d1f0
jmp 0x45d484
mov al, 1
pop esi
pop ebx
ret 4

Function at 0x45d4dd
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x45d50f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x45d50c
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x45d530
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x45d583
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x45d5b5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x45d5b2
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x45d5d9
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x45df00
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4a3ba3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d2a20]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x4d738c
mov ebp, 0x4d2e28
mov dword [esp + 0x14], 3
lea esp, [esp]
push 0x44
call fcn.0047683a
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x45df6e
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
mov ecx, dword [ebp - 4]
push edx
push ecx
push eax
call fcn.0045e970
mov edi, eax
jmp 0x45df70
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x45df8c
cmp ecx, ebx
je 0x45df8a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], edi
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x20]
push eax
call edx
test al, al
je 0x45dffc
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.0045dca0
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebx
je 0x45dfd7
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x45dfe6
lea ecx, [eax + 4]
call fcn.004036a1
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.00402f9c
jmp 0x45e02d
call fcn.004629db
test al, al
je 0x45e01e
mov ecx, dword [esp + 0x2c]
push ecx
push str.CreateThread_Failed__last_error_d
push 2
mov ebx, str.._asyncframertapi.cpp
call fcn.004627ab
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebp, 0xc
add esi, 4
sub dword [esp + 0x14], 1
jne 0x45df40
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x45ef20
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, 0x4d6eec
push 0x4d73a8
call ebx
mov esi, dword [edi]
test esi, esi
je 0x45ef58
cmp dword [esi + 0x14], 0
je 0x45ef58
push 0x4d73a8
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x4d6ee0
jne 0x45ef35
mov eax, dword [0x4d71f8]
test eax, eax
jne 0x45efba
call fcn.004629db
test al, al
je 0x45ef89
push 0x4bea04
push 0xb
push str.F:_trunkqzz_5_24_office_vulProjectsVulDecMainUIincludeAsyncFrame_MessageLoop.h
call fcn.0046286a
add esp, 0xc
push 8
call fcn.0047683a
mov esi, eax
add esp, 4
test esi, esi
je 0x45efb3
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x45efb5
xor eax, eax
mov dword [0x4d71f8], eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x45efd3
mov dword [eax + 0x68], 1
mov al, 1
ret

Function at 0x45eff0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x4d71f8]
test eax, eax
jne 0x45f050
call fcn.004629db
test al, al
je 0x45f016
push 0x4bea04
push 0xb
push str.F:_trunkqzz_5_24_office_vulProjectsVulDecMainUIincludeAsyncFrame_MessageLoop.h
call fcn.0046286a
add esp, 0xc
push esi
push 8
call fcn.0047683a
mov esi, eax
add esp, 4
test esi, esi
je 0x45f046
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [0x4d71f8], eax
pop esi
ret
xor esi, esi
mov eax, esi
mov dword [0x4d71f8], eax
pop esi
ret
Function at 0x45f0f0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4a4b4d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d2a20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esi], vtable.qmbase::MessageLoop.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea eax, [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov byte [esp + 0x20], 5
mov dword [esi + 0x88], edi
call fcn.0045eff0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
call fcn.0045eff0
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x45f1a7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.0047683a
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x45f1c8
push eax
call fcn.00461cb0
mov ebp, eax
jmp 0x45f1ca
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x45f1d9
lea eax, [ebp + 4]
push eax
call ebx
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x45f1e8
lea ecx, [eax + 4]
call fcn.004036a1
mov eax, esi
mov dword [esi + 0x70], ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x461cb0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4a4a83
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4d2a20]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], eax
lea eax, [esi + 8]
push 0x7d0
push eax
mov dword [esi], vtable.qmbase::MessageLoopProxyImpl.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x10], 1
call fcn.0045eff0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x4622a5
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x4622c0
xor eax, eax
pop edi
ret
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4622df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x4622bc
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x462377
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov byte [0x4d7964], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4623e3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.EnableLogToView
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4623da
cmp dword [ebp - 8], 1
jne 0x4623da
mov byte [0x4d7964], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x46268c
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [edi], ebx
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x462716
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x462716
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call sub.MSVCR80.dll_wcscpy_s
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call sub.MSVCR80.dll_wcsncat_s
add esp, 0x1c
jmp 0x462729
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call sub.MSVCR80.dll_wcsncpy_s
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.0047676d
leave
ret

Function at 0x462739
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x462762
push edi
push 0x20
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [esi], eax
je 0x4627a6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4627a6
cmp eax, 0x2800
ja 0x4627a6
push 2
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call sub.MSVCR80.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4