joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aca0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call ebp
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call ebp
mov edi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x41acd4
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x41acd0
xor eax, eax
lea ecx, [eax + 0x10]
nop
mov edx, edi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x14]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x20]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x1c]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
sub ecx, 1
jne 0x41acf0
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ebx, dword [esp + 0x2c]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x41ad84
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x41ad80
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x41adb0
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x41adb0
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

Function at 0x41b490
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ecx
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b4df
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x1c], 0x10000
call edi
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1001
push 0xffff
push esi
call edi
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x41b5f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
je 0x41b612
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
je 0x41b62d
mov al, byte [eax]
test al, al
je 0x41b6cc
call fcn.0041b490
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x41b6b2
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dx, word [esp + 0x2c]
xor eax, eax
mov dword [esp + 0xc], eax
push 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov word [esp + 0x12], dx
mov edx, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41b6a3
cmp eax, 0xffffffff
jne 0x41b6b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41b6b2
push 1
call fcn.0041b760
test al, al
je 0x41b6b2
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
jne 0x41b6cc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41b6c2
push eax
call edi
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov al, byte [esi + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00429d78
add esp, 0x1c
ret 8

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp byte [ebp + 4], 0
je 0x41b759
push ebx
xor eax, eax
test edi, edi
push esi
mov esi, edi
jle 0x41b74a
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x41b710
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41b71d
mov cl, byte [ecx]
test cl, cl
je 0x41b73e
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x41b74a
mov edx, dword [esp + 0x14]
push 0
sub edx, esi
push esi
add edx, edi
push edx
push eax
call ebx
test eax, eax
jle 0x41b74a
sub esi, eax
test esi, esi
jg 0x41b710
test eax, eax
jle 0x41b74a
pop esi
pop ebx
mov eax, edi
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebx
or eax, 0xffffffff
pop ebp
ret 8
or eax, 0xffffffff
pop ebp
ret 8
Function at 0x41b760
Capabilities:
Get socket status

Disassembly:
sub esp, 0x218
cmp dword [esi], 0xffffffff
push ebp
push edi
je 0x41b819
mov edi, dword [esi + 0xc]
imul edi, edi, 0x3e8
cmp byte [esp + 0x224], 0
jne 0x41b786
add edi, edi
test edi, edi
jle 0x41b819
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esi + 8]
test eax, eax
je 0x41b7a1
mov al, byte [eax]
test al, al
je 0x41b819
mov eax, dword [esi]
mov ecx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x11c], eax
add eax, ecx
cmp byte [esp + 0x224], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x118], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xc350
je 0x41b7f0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0x18]
push ecx
push 0
jmp 0x41b804
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x11c]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
jg 0x41b826
sub edi, 0xc350
test edi, edi
jg 0x41b794
xor al, al
pop edi
pop ebp
add esp, 0x218
ret 4
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop edi
neg eax
pop ebp
add esp, 0x218
ret 4

Function at 0x41ba20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
test ebx, ebx
push ebp
push esi
push edi
mov esi, eax
mov edi, ebx
jle 0x41ba77
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esi + 8]
test eax, eax
je 0x41ba4c
mov al, byte [eax]
test al, al
je 0x41ba77
mov eax, dword [esi + 8]
test eax, eax
je 0x41ba4c
mov cl, byte [eax]
test cl, cl
je 0x41ba80
push 0
call fcn.0041b760
test al, al
je 0x41ba80
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ba80
mov edx, dword [esp + 0x14]
push 0
sub edx, edi
push edi
add edx, ebx
push edx
push eax
call ebp
test eax, eax
jle 0x41ba80
sub edi, eax
test edi, edi
jg 0x41ba32
mov al, 1
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 4
Function at 0x41ba90
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x447c52
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
push esi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov ecx, dword [0x45854c]
lea esi, [edi + 4]
xor ebx, ebx
mov dword [edi], ebx
mov eax, 0x41d160
mov dword [esi + 0x14], eax
mov dword [esi], vtable.._AV__Thread_U__BindMember0_VTransportMgr_DataTransport__P812_AEXPAX_Z_fund___fund__.0
mov dword [esi + 4], ebx
mov dword [esi + 0x10], edi
mov byte [esi + 0x18], 1
xor eax, eax
mov dword [esi + 8], eax
mov dword [esp + 0x10], edi
mov dword [esi + 0xc], eax
mov dword [esp + 0x1b4], ebx
mov dword [edi + 0x20], ecx
call fcn.00420f00
mov dword [edi + 0x28], eax
mov byte [eax + 0x39], 1
mov eax, dword [edi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x28]
mov dword [eax], eax
mov eax, dword [edi + 0x28]
mov dword [eax + 8], eax
mov dword [edi + 0x2c], ebx
mov byte [esp + 0x1b4], 1
call fcn.00421390
mov dword [edi + 0x34], eax
mov byte [eax + 0x31], 1
mov eax, dword [edi + 0x34]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x34]
mov dword [eax], eax
mov eax, dword [edi + 0x34]
mov dword [eax + 8], eax
mov dword [edi + 0x38], ebx
mov al, byte [esp + 0x1bc]
mov byte [edi + 0x3c], al
mov byte [edi + 0x444], bl
lea ebp, [edi + 0x444]
mov byte [edi + 0x44c], bl
mov byte [edi + 0x44d], 1
mov dword [edi + 0x454], ebx
mov dword [edi + 0x458], ebx
mov dword [edi + 0x45c], ebx
mov dword [edi + 0x478], 0xf
mov dword [edi + 0x474], ebx
mov byte [edi + 0x464], bl
mov byte [esp + 0x1b4], 4
lea ecx, [edi + 0x48c]
push ecx
mov ecx, ebp
mov word [edi + 0x47c], bx
mov dword [edi + 0x480], ebx
mov dword [edi + 0x484], ebx
mov dword [edi + 0x488], ebx
call fcn.0041b850
lea edx, [esp + 0x14]
push edx
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41bbe1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x400
lea eax, [edi + 0x40]
push ebx
push eax
mov byte [esp + 0x1c0], 6
call fcn.004315d0
add esp, 0xc
cmp byte [edi + 0x3c], bl
mov dword [edi + 0x448], ebx
je 0x41bc0c
push edi
call fcn.0041bee0
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov cl, byte [ebp]
test cl, cl
mov dword [edi + 0x440], eax
jne 0x41bc45
mov edx, dword [edi + 0x440]
push edx
mov byte [ebp], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.0041e760
test al, al
mov eax, edi
jne 0x41bc47
mov byte [ebp], bl
jmp 0x41bc47
mov eax, edi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00429d78
add esp, 0x1a8
ret 4
Function at 0x41d0b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x446719
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov esi, ecx
mov dword [esp + 0xc], ebx
cmp byte [0x458aa0], bl
mov dword [esp + 0x10], esi
jne 0x41d102
push 0x3ff
push 0x458aa0
push str._ALLUSERSPROFILE_Application_DataTencentQQP3C4Mgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, 0x458aa0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41d117
sub eax, edx
push eax
push 0x458aa0
mov ecx, esi
call fcn.004046a0
push ebx
mov dword [esp + 0x20], ebx
push edi
or eax, 0xffffffff
mov dword [esp + 0x14], 1
call fcn.00419550
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x28
cmp dword [ebx + 0x18], 0x10
push ebp
push esi
push edi
mov esi, eax
jb 0x41d623
mov eax, dword [ebx + 4]
jmp 0x41d626
lea eax, [ebx + 4]
push eax
call fcn.0041d570
xor ebp, ebp
cmp eax, ebp
je 0x41d684
mov ecx, dword [eax + 0xc]
cmp dword [ecx], ebp
je 0x41d684
mov dword [esi + 0x480], ebp
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
lea ecx, [esi + 0x30]
mov ebp, eax
call fcn.0041e970
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, edi
lea esi, [esp + 0x18]
call fcn.0041b4f0
cmp dword [esp + 0x30], 0x10
jb 0x41d6a9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00429c36
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x28
ret
add dword [esi + 0x480], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], eax
call fcn.0041e970
mov edx, dword [esp + 0x14]
mov dword [eax], ebp
mov dword [eax + 4], edx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x41e760
Capabilities:
Create thread

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0
lea eax, [esi + 8]
push eax
push 0x41f070
push 0
push 0
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], 0
call fcn.0042cbac
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x41e798
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x41e7a6
mov byte [esi + 0x18], 1
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret
Function at 0x422be0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446e38
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00422f20
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x422c34
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x422d14
push 1
lea edi, [esp + 0x20]
call fcn.00422f20
lea eax, [esp + 0x3c]
add esp, 4
push eax
call fcn.004236b0
add esp, 4
test al, al
jne 0x422cc7
mov ecx, edi
push ecx
call fcn.004236b0
add esp, 4
test al, al
je 0x422cc7
mov ecx, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x422c95
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x422ca3
lea eax, [esp + 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x422ccc
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x422cbe
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x422ccc
mov edi, 8
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x422cda
lea eax, [esp + 0x20]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x422cfe
mov edx, dword [esp + 0x20]
push edx
call fcn.00429c36
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x422d49
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x422d42
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
push 0x458a84
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422d42
cmp dword [esp + 0x18], edi
jne 0x422d42
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], 8
jb 0x422d5d
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00429c36
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00429d78
add esp, 0x50
ret
Function at 0x422d80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446e38
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00422f20
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x422dd4
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x422e4b
push 1
lea edi, [esp + 0x20]
call fcn.00422f20
mov eax, dword [esp + 0x24]
mov edi, 8
add esp, 4
cmp dword [esp + 0x34], edi
jae 0x422e11
lea eax, [esp + 0x20]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x422e35
mov eax, dword [esp + 0x20]
push eax
call fcn.00429c36
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x422e73
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
push 0x458a84
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422e6c
cmp dword [esp + 0x18], 0x10
jne 0x422e6c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], 8
jb 0x422e87
mov edx, dword [esp + 0x3c]
push edx
call fcn.00429c36
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00429d78
add esp, 0x50
ret
Function at 0x422f20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x446dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, 7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], bx
push 0x208
lea eax, [esp + 0x38]
push ebx
mov dword [esp + 0x254], ebx
push eax
mov dword [esp + 0x1c], 1
call fcn.004315d0
mov cl, byte [esp + 0x260]
add esp, 0xc
neg cl
push 1
lea edx, [esp + 0x38]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x423062
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422fd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x20]
call fcn.00403890
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x254], 1
call fcn.00408cc0
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], 8
jb 0x423022
mov edx, dword [esp + 0x1c]
push edx
call fcn.00429c36
add esp, 4
cmp byte [esp + 0x254], bl
mov ecx, edi
je 0x423036
push 0x13
push str.TencentDeskUpdate
jmp 0x42303d
push 0x10
push str.TencentDesktop
call fcn.004089a0
mov ecx, edi
call fcn.00423090
test al, al
jne 0x423054
mov ecx, edi
call fcn.004231f0
push 0xa
push str.Global.db
mov ecx, edi
call fcn.004089a0
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00429d78
add esp, 0x244
ret
Function at 0x424670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x446c60
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x8c]
push eax
call fcn.00424250
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x4246d1
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.004046a0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x84], ebx
push eax
xor edx, edx
mov byte [esp + 0x20], 0x2c
call fcn.00425e40
mov edi, eax
cmp edi, 0xffffffff
mov ebp, 0x10
je 0x4247d7
mov byte [esp + 0x18], 0x2c
lea esp, [esp]
push edi
xor ecx, ecx
lea esi, [esp + 0x5c]
lea edx, [esp + 0x40]
call fcn.00424e30
mov byte [esp + 0x80], 1
cmp dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x5c]
jae 0x424746
lea ecx, [esp + 0x5c]
lea esi, [esp + 0x20]
call fcn.00424890
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
call fcn.004042f0
mov byte [esp + 0x80], 1
cmp dword [esp + 0x38], ebp
jb 0x42477f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x6c], ebx
je 0x424793
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push edx
call fcn.0041edf0
add edi, 1
push edi
push ebx
lea ecx, [esp + 0x44]
call fcn.004043d0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
xor edx, edx
call fcn.00425e40
mov byte [esp + 0x80], bl
cmp dword [esp + 0x70], ebp
mov edi, eax
jb 0x4247ce
mov edx, dword [esp + 0x5c]
push edx
call fcn.00429c36
add esp, 4
cmp edi, 0xffffffff
jne 0x424720
cmp dword [esp + 0x54], ebp
mov ecx, dword [esp + 0x40]
jae 0x4247e5
lea ecx, [esp + 0x40]
lea esi, [esp + 0x20]
call fcn.00424890
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.004042f0
mov byte [esp + 0x80], bl
cmp dword [esp + 0x38], ebp
jb 0x42481d
mov eax, dword [esp + 0x24]
push eax
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x50], ebx
mov esi, dword [esp + 0x1c]
je 0x424831
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041edf0
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x42483c
xor esi, esi
jmp 0x424854
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [esp + 0x54], ebp
jb 0x424867
mov edx, dword [esp + 0x40]
push edx
call fcn.00429c36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00429d78
add esp, 0x70
ret 8
Function at 0x425170
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x447a07
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x44d9ec
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00425ef0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00418280
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x458fb0]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4