joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042f97
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 0x10043b91
push ebx
push ebx
mov byte [esi + 0x20], bl
mov dword [eax], esi
mov dword [esi + 0xc], ebx
call fcn.10056155
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10042fc7
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
pop ebx
jne 0x10042fd5
mov byte [esi + 0x20], 1
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x10045cb4
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push 0x19c
mov eax, 0x100a57ca
call fcn.10059830
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 8]
mov dword [ebx], vtable.Network::CCommunication_class_Network::CQMPacket_.0
push eax
mov dword [ebp - 0x1a8], ebx
mov dword [ebx + 4], vtable.fund::lock::critical_section.0
call edi
and dword [ebp - 4], 0
lea esi, [ebx + 0x20]
call fcn.1004657e
lea esi, [ebx + 0x2c]
mov byte [ebp - 4], 1
call fcn.1004657e
lea esi, [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.1004657e
xor esi, esi
lea eax, [ebx + 0x354]
mov dword [ebx + 0x350], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov byte [ebx + 0x364], 0
lea eax, [ebx + 0x368]
mov dword [eax], vtable.fund::lock::critical_section.0
add eax, 4
push eax
call edi
mov byte [ebp - 4], 5
call fcn.10045517
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
mov dword [ebx + 0x38c], esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
mov dword [ebx + 0x390], eax
mov edi, dword [eax + 0x10]
lea eax, [ebx + 0x394]
inc edi
inc edi
push eax
call fcn.1004679d
mov byte [ebx + 0x3a4], 0
lea esi, [ebx + 0x3a8]
mov eax, 0x100471e5
mov dword [esi + 0x14], eax
xor edi, edi
mov dword [esi], vtable.._AV__Thread_U__BindMember0_V__CCommunication_VCQMPacket_Network___Network__P812_AEXPAX_Z_fund___fund__.0
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
lea eax, [esi + 8]
push edi
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], edi
push eax
push 0x10046c1a
push edi
push edi
call fcn.10056155
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10045dfb
mov dword [esi + 4], edi
cmp dword [esi + 4], edi
jne 0x10045e04
mov byte [esi + 0x18], 1
mov eax, ebx
call fcn.1005987a
ret 4
Function at 0x10047509
Capabilities:
Set socket configuration

Disassembly:
push 4
mov eax, 0x100a44d9
call fcn.100597c7
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov word [esi + 0xc], 1
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi], vtable.Network::CTcpClient_class_Network::CQMPacket_.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
cmp edi, 0xffffffff
mov byte [ebp - 4], 3
je 0x100475ac
push edi
call fcn.1003e06a
pop ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1002
mov ebx, 0xffff
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esi + 0x14], 2
mov dword [ebp + 0xc], 0x10000
call edi
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1001
push ebx
push dword [ebp + 0x14]
call edi
push esi
push dword [esi + 0x10]
push esi
call fcn.10049547
mov eax, esi
call fcn.10059866
ret 0x10

Function at 0x100475fd
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x100c7210]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
call fcn.1003e0b6
pop ecx
push eax
mov dword [edi + 0x10], eax
call fcn.1003e06a
test al, al
pop ecx
je 0x1004768a
mov ax, word [esi + 0x20]
push 1
mov word [esp + 0x10], 2
mov word [esp + 0x12], ax
call fcn.1003df8c
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 0x10047672
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1004768a
push edi
push dword [edi + 0x10]
push edi
call fcn.100495a4
push edi
push dword [edi + 0x10]
push edi
call fcn.10049601
mov al, 1
jmp 0x1004769f
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x10047699
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x10], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.10053547
mov esp, ebp
pop ebp
ret 4
Function at 0x100482a6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100c7210]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x14], 1
jne 0x10048315
push esi
push dword [edi + 0x10]
mov dword [edi + 0x14], 4
push edi
call fcn.1004965e
push edi
push dword [edi + 0x10]
push edi
call fcn.10049547
mov ax, word [edi + 0x64]
push 1
lea esi, [edi + 0x44]
mov byte [ebp - 0x10], 4
mov byte [ebp - 0xf], 1
mov word [ebp - 0xe], ax
call fcn.1003df8c
mov edi, dword [edi + 0x10]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
pop esi
je 0x1004831d
push 0
push 9
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
jmp 0x1004831d
push dword [ebp + 8]
call fcn.10047989
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10053547
leave
ret 4

Function at 0x100485fa
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x14]
cmp ecx, 1
jne 0x10048655
push dword [ebx + 0x10]
mov dword [ebx + 0x14], 5
push ebx
call fcn.1004965e
push ebx
push dword [ebx + 0x10]
push ebx
call fcn.10049547
mov ebx, dword [ebx + 0x10]
cmp ebx, 0xffffffff
mov byte [ebp + 8], 5
mov byte [ebp + 9], 2
mov byte [ebp + 0xa], 0
mov byte [ebp + 0xb], 2
je 0x10048705
push 0
push 4
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10048705
push esi
push 7
pop eax
cmp ecx, eax
jne 0x100486a9
push dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
push ebx
call fcn.1004965e
mov al, byte [ebx + 0x48]
mov byte [ebp - 0xb], al
mov ax, word [ebx + 0x6c]
push 1
lea esi, [ebx + 0x4c]
mov byte [ebp - 0xc], 5
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 1
mov word [ebp - 4], ax
call fcn.1003df8c
mov ebx, dword [ebx + 0x10]
cmp ebx, 0xffffffff
mov dword [ebp - 8], eax
je 0x10048704
push 0
push 0xa
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10048704
push 6
pop eax
cmp ecx, eax
jne 0x100486fa
push edi
push dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
push ebx
call fcn.1004965e
lea ecx, [ebx + 0xbc]
call fcn.10009b50
push eax
lea ecx, [ebx + 0xa0]
call fcn.10009b50
mov edi, eax
lea esi, [ebp - 0xc]
call fcn.1003dfc6
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebx + 0x10]
call fcn.1003e18c
push dword [ebp - 0xc]
call fcn.10055f4f
add esp, 0x10
pop edi
jmp 0x10048704
push dword [ebp + 8]
mov ecx, ebx
call fcn.10047989
pop esi
pop ebx
leave
ret 4
Function at 0x1004a7c2
Capabilities:
Resolve dns

Disassembly:
push 0x54
mov eax, 0x100a4a10
call fcn.100597c7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.100091e0
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
call fcn.1004ac4a
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x20]
call fcn.1004569f
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.10045684
test al, al
jne 0x1004a838
mov esi, dword [ebp - 0x14]
add esi, 0xc
mov ecx, esi
call fcn.100059c0
mov ecx, esi
mov ebx, eax
call fcn.10009580
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.100432ea
test eax, eax
jl 0x1004a835
lea eax, [ebp - 0x18]
jmp 0x1004a847
mov ebx, dword [ebp + 8]
push dword [ebx + 4]
mov edi, ebx
lea esi, [ebp - 0x28]
call fcn.1004569f
mov eax, esi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], ebx
call fcn.1000b140
mov edi, dword [ebp + 8]
push dword [edi + 4]
lea esi, [ebp - 0x28]
call fcn.1004569f
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.10045684
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1004a8c9
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x1004a88c
call fcn.10056d29
cmp ebx, dword [esi + 4]
jne 0x1004a896
call fcn.10056d29
cmp ebx, dword [esi + 4]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], eax
jne 0x1004a8a6
call fcn.10056d29
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebx + 0x2c]
neg esi
sbb esi, esi
and esi, 0x6c0840
add esi, 0x1d4c0
call edi
add esi, ebx
cmp esi, eax
jbe 0x1004a8c9
mov eax, dword [ebp - 0x14]
jmp 0x1004a924
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1004a8df
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x1004a8e1
xor esi, esi
call edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.100091e0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 1
call fcn.1004a9f9
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x60]
mov dword [eax + 4], edi
call fcn.1000b140
mov eax, ebx
cmp dword [eax + 8], 0x64
jbe 0x1004a922
push eax
call fcn.1004a92c
mov eax, esi
call fcn.10059866
ret 8
Function at 0x1004cc18
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 [0x100cb898]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 8], eax
je 0x1004cc45
sub eax, dword [0x1010d380]
cmp eax, 0x3e8
jae 0x1004cc45
mov eax, edi
jmp 0x1004cc5a
push esi
push 0x3c
mov dword [ebp - 4], ebx
call fcn.10054424
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x1004cc5e
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 0x1004cca9
push esi
call fcn.100544e7
cmp dword [ebp - 4], 0xb2c
pop ecx
jbe 0x1004cc88
xor eax, eax
inc eax
mov dword [0x100cb898], eax
jmp 0x1004cce8
push dword [ebp - 4]
call fcn.10054424
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x1004cc9e
mov eax, dword [0x100cb898]
jmp 0x1004cc59
push ebx
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, ebx
jne 0x1004ccd9
mov ecx, dword [esi]
xor edx, edx
cmp ecx, ebx
jbe 0x1004ccc9
lea eax, [esi + 4]
cmp dword [eax], ebx
jne 0x1004ccc1
cmp dword [eax + 4], ebx
je 0x1004ccd9
inc edx
add eax, 0x38
cmp edx, ecx
jb 0x1004ccb8
push esi
call fcn.100544e7
mov dword [0x100cb898], ebx
xor eax, eax
jmp 0x1004cce7
push esi
call fcn.100544e7
xor eax, eax
inc eax
mov dword [0x100cb898], eax
pop ecx
mov ecx, dword [ebp - 8]
mov dword [0x1010d380], ecx
jmp 0x1004cc59
Function at 0x1004cd49
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.1004d404
and dword [ebx + 0x94], 0
push 0
mov dword [ebx + 0x90], eax
call fcn.10058e01
pop ecx
mov dword [ebx + 8], eax
call fcn.10042671
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 0x1004ce50
movzx ecx, ax
mov word [ebx + 0x1a], cx
mov eax, ebx
pop ebp
ret 0x20

Function at 0x1004d941
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [edi + 0x2c]
test eax, eax
push ebx
push esi
je 0x1004d94d
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0xc]
jne 0x1004d95b
lea eax, [edi + 0x24]
call fcn.100427e0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1004d965
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0xc]
je 0x1004d96f
xor al, al
jmp 0x1004d9bf
call fcn.10042671
cmp dword [edi + 4], 0
push 0
sete cl
mov esi, eax
push ecx
movzx ecx, byte [edi]
push ecx
call fcn.1004b558
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.1004d7b6
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 8]
jae 0x1004d9bd
mov ecx, edi
call fcn.1004d6d7
jmp 0x1004d96b
mov al, 1
pop esi
pop ebx
ret 4
Function at 0x1004d9c4
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 0x1004d9f6
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 0x1004d9f3
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 0x1004da17
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 0x1004da6a
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 0x1004da9c
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 0x1004da99
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 0x1004dac0
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 0x1004e2c6
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 0x1004e2e1
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 0x1004e300
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1004e2dd
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x1004e398
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.WS2_32.dll_bind
mov dword [ebp - 4], ebx
mov byte [0x1010d3b8], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004e404
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 0x1004e3fb
cmp dword [ebp - 8], 1
jne 0x1004e3fb
mov byte [0x1010d3b8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret

Function at 0x1004e6ad
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100c7210]
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 fcn.10053730
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 0x1004e737
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x1004e737
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.100579e9
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.10058438
add esp, 0x1c
jmp 0x1004e74a
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.1005836f
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.10053547
leave
ret
Function at 0x1004e75a
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 0x1004e783
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 0x1004e7c7
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1004e7c7
cmp eax, 0x2800
ja 0x1004e7c7
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 fcn.10055fd0
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4
Function at 0x1004e977
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
jne 0x1004e995
jmp 0x1004eb06
push ebx
push esi
lea eax, [edx + 0x20]
mov esi, eax
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x40]
mov ecx, 0x4d34d34d
add esi, ecx
add dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
mov eax, 0x2cb2cb2d
sbb esi, esi
neg esi
sub esi, eax
add dword [edx + 0x24], esi
mov esi, dword [edx + 0x24]
cmp esi, dword [ebp - 0x48]
mov esi, 0x34d34d34
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x28], edi
mov edi, dword [edx + 0x28]
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, ecx
add dword [edx + 0x2c], edi
mov edi, dword [edx + 0x2c]
cmp edi, dword [ebp - 0x40]
sbb edi, edi
neg edi
sub edi, eax
add dword [edx + 0x30], edi
mov edi, dword [edx + 0x30]
cmp edi, dword [ebp - 0x3c]
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x34], edi
mov esi, dword [edx + 0x34]
cmp esi, dword [ebp - 0x38]
sbb esi, esi
neg esi
add esi, ecx
add dword [edx + 0x38], esi
mov ecx, dword [edx + 0x38]
cmp ecx, dword [ebp - 0x34]
mov esi, edx
sbb ecx, ecx
neg ecx
sub ecx, eax
add dword [edx + 0x3c], ecx
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 8], esi
sbb eax, eax
neg eax
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x2c]
sub eax, edx
mov ecx, dword [esi + 0x20]
add ecx, dword [esi]
movzx edi, cx
mov esi, ecx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, ecx
imul esi, ecx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [eax + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1004ea3e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, eax
rol esi, 0x10
add esi, ecx
rol edi, 0x10
add edi, esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [edx], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x24]
rol edi, 0x10
add edi, esi
rol ecx, 0x10
add ecx, edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, esi
rol ecx, 8
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
add edi, ecx
add esi, edi
mov dword [edx + 0x10], esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [edx + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, eax
rol ecx, 0x10
add ecx, esi
rol eax, 8
add eax, dword [ebp - 0x18]
pop esi
add eax, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret