joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459823
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], 0
call fcn.0040d7c0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CQQBrowser.0
mov edi, dword [esi + 0x2c]
sub edi, 0x10
lea edx, [eax - 0x10]
cmp edx, edi
je 0x40f64c
cmp dword [edi + 0xc], 0
jl 0x40f640
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x40f640
mov ecx, edx
call fcn.00409510
mov dword [ebp - 0x814], eax
lea ecx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40f632
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x814]
add eax, 0x10
mov dword [esi + 0x2c], eax
jmp 0x40f64c
push dword [eax - 0xc]
lea ecx, [esi + 0x2c]
push eax
call fcn.00409600
push 5
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], 3
push 0x465518
call fcn.00409600
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x818], 0x800
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_Explorer
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f6e8
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push str.version
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f6e8
mov eax, 0x36
mov ecx, str.http:__dldl.qq.com_dl_qqie8
cmp ax, word [ebp - 0x810]
je 0x40f6ed
mov ecx, str.http:__dldl.qq.com_dl_qq
mov edx, ecx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f6f2
sub edx, ebx
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0x38]
call fcn.00409600
push 2
lea ecx, [esi + 0x3c]
push 0x464448
call fcn.00409600
push 0x16
lea ecx, [esi + 0x40]
push str.QQBrowser_Setup_QQ.exe
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f74b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 4
Function at 0x40f770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, 0x55555556
mov dword [ebp - 8], ebx
imul ebx
mov eax, 0x55555556
mov ecx, edx
inc edx
shr ecx, 0x1f
add ecx, edx
push esi
push edi
xor esi, esi
lea ecx, [ecx + ecx*2]
shl ecx, 2
imul ecx
mov eax, edx
inc edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00442111
mov edi, eax
add esp, 4
test edi, edi
jne 0x40f7bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jle 0x40f851
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ebx, edx
mov edx, dword [ebp - 4]
shr ebx, 1
inc ebx
lea eax, [ebx*4]
sub eax, ebx
neg eax
add dword [ebp - 8], eax
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
mov eax, ecx
shr eax, 2
and ecx, 3
add ecx, ecx
movzx eax, byte [eax + 0x471a98]
mov byte [edi + esi], al
mov eax, edx
shr eax, 4
and edx, 0xf
movzx eax, byte [eax + ecx*8 + 0x471a98]
mov ecx, dword [ebp - 4]
mov byte [edi + esi + 1], al
movzx ecx, byte [ecx + 2]
mov eax, ecx
and ecx, 0x3f
shr eax, 6
movzx eax, byte [eax + edx*4 + 0x471a98]
mov edx, dword [ebp - 4]
mov byte [edi + esi + 2], al
add edx, 3
movzx eax, byte [ecx + 0x471a98]
mov byte [edi + esi + 3], al
add esi, 4
mov dword [ebp - 4], edx
sub ebx, 1
jne 0x40f7e6
mov ebx, dword [ebp - 8]
jmp 0x40f854
mov edx, dword [ebp - 4]
test ebx, ebx
je 0x40f8be
movzx ebx, byte [edx]
mov eax, ebx
and ebx, 3
shr eax, 2
shl ebx, 4
movzx eax, byte [eax + 0x471a98]
mov byte [edi + esi], al
inc esi
cmp dword [ebp - 8], 1
lea eax, [esi + edi]
mov dword [ebp - 4], eax
jle 0x40f8a9
movzx ecx, byte [edx + 1]
mov edx, dword [ebp - 4]
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + ebx + 0x471a98]
mov byte [edx], al
movzx eax, byte [ecx*4 + 0x471a98]
mov byte [edi + esi + 1], al
mov byte [edi + esi + 2], 0x3d
jmp 0x40f8bb
mov edx, dword [ebp - 4]
mov al, byte [ebx + 0x471a98]
mov byte [edx], al
mov word [edi + esi + 1], 0x3d3d
add esi, 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f8c7
mov dword [eax], esi
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fe50
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
mov dword [ebp - 0x68], edx
mov edi, ecx
mov dword [ebp - 0x64], 0
call fcn.0043e0c3
mov esi, eax
add esp, 4
test esi, esi
je 0x40feeb
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
push 0
push 0x80
push 3
push 0
push 1
push connect
push edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fefd
push esi
call fcn.0043e0be
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x64]
push 0
push eax
push 0x400
push esi
push edi
call ebx
test eax, eax
je 0x40ff3f
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40ff3f
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00420110
add esp, 0xc
lea eax, [ebp - 0x64]
push 0
push eax
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x40ff17
push 0x400
push 0
push esi
call fcn.0043fa60
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.00420460
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push 0x23
push dword [ebp - 0x68]
call fcn.0040f950
add esp, 0x60
push esi
call fcn.0043e0be
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x412e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x4665c8], 0
je 0x412e2e
nop dword [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x4665c8], 0
jne 0x412e20
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [ebp - 4], ecx
cmp byte [eax + 0x4667c8], 0
je 0x412fbd
cmp dl, 0x26
jne case.0x412e67.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x412e67.36
movzx eax, byte [eax + 0x412ffc]
jmp dword [eax*4 + 0x412fe4]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x412e95
cmp byte [esi + 3], 0x70
jne case.0x412e67.36
cmp byte [esi + 4], 0x3b
jne case.0x412e67.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x412fa8
cmp al, 0x70
jne case.0x412e67.36
cmp byte [esi + 3], 0x6f
jne case.0x412e67.36
cmp byte [esi + 4], 0x73
jne case.0x412e67.36
cmp byte [esi + 5], 0x3b
jne case.0x412e67.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x412fa8
cmp byte [esi + 2], 0x75
jne case.0x412e67.36
cmp byte [esi + 3], 0x6f
jne case.0x412e67.36
cmp byte [esi + 4], 0x74
jne case.0x412e67.36
cmp byte [esi + 5], 0x3b
jne case.0x412e67.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x412fa8
cmp byte [esi + 2], 0x74
jne case.0x412e67.36
cmp byte [esi + 3], 0x3b
jne case.0x412e67.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x412fa8
cmp byte [esi + 2], 0x74
jne case.0x412e67.36
cmp byte [esi + 3], 0x3b
jne case.0x412e67.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x412fa8
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x412f68
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x465ec8]
cmp al, 0xff
je 0x412f8f
nop
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x465ec8]
cmp al, 0xff
jne 0x412f50
jmp 0x412f8f
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x465ec8]
cmp al, 0xff
je 0x412f8f
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x465ec8]
cmp al, 0xff
jne 0x412f78
lea ecx, [ebp - 4]
call fcn.00412d30
cmp byte [esi], 0x3b
jne 0x412fc7
mov ecx, dword [ebp - 4]
inc esi
jmp 0x412fab
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [ebp - 4], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x4667c8], 0
jne 0x412e47
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push str.expected__
lea ecx, [ebp - 0x18]
call fcn.00410090
push 0x46f380
mov eax, ecx
push eax
call fcn.00440134
nop
xor al, 0x2f
inc ecx
add byte [esi + 0x2e], ch
inc ecx
add bl, bh
inc ecx
add byte [ebx], bl
das
inc ecx
add bh, al
inc ecx
add byte [edx + 0x412f], ah
add eax, 0x5050505
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x413e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + str.37k_IF__y_d]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x14], eax
add esi, 4
cmp esi, 0x10
jl 0x413e80
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x413ea0
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x18]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + str.37k_IF__y_d]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x14], eax
add esi, 4
cmp esi, 0x10
jl 0x413f40
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x413f62
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x18]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x414690
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
mov ebx, edx
mov dword [ebp - 0x64], edi
xorps xmm0, xmm0
mov esi, ecx
push 0x40
push 0
movups xmmword [ebx], xmm0
push eax
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
call fcn.0043fa60
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
jb 0x41470a
mov esi, dword [esi]
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00420110
lea eax, [ebp - 0x60]
push eax
push ebx
call fcn.00420460
add esp, 0x14
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push 0x465b1c
push 2
push 3
push edi
call fcn.00414550
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x414724
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x4154a0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00415690
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 1
cmovae eax, dword [ebp - 0x40]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4155df
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00415690
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00416280
test al, al
jne 0x415565
lea ecx, [ebp - 0x28]
call fcn.00416280
test al, al
je 0x415565
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x415565
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov byte [ebp - 4], 0
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4155c6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4155bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415677
push edx
push ecx
call fcn.0043dbf3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x415622
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x41561b
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41561b
cmp dword [ebp - 0x44], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415658
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41564e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41567c
push edx
push ecx
call fcn.0043dbf3
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 4
call fcn.004420bc
call fcn.004420bc
int3
Function at 0x415690
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 1
push eax
call fcn.0043fa60
add esp, 0xc
mov ecx, 0x1a
test bl, bl
mov eax, 0x23
cmovne eax, ecx
push 1
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x415826
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415760
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004017c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401900
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4157eb
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4157e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415843
push edx
push ecx
call fcn.0043dbf3
add esp, 8
mov ecx, esi
test bl, bl
je 0x4157fa
push 0x13
push 0x466948
jmp 0x415801
push 0x10
push str.TencentDesktop
call fcn.00401900
mov ecx, esi
call fcn.00415850
test al, al
jne 0x415818
mov ecx, esi
call fcn.004159f0
push 0xa
push str.Global.db
mov ecx, esi
call fcn.00401900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
call fcn.004420bc
int3
Function at 0x418100
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
mov dword [ebp - 0x68], edx
mov edi, ecx
mov dword [ebp - 0x64], 0
call fcn.0043e0c3
mov esi, eax
add esp, 4
test esi, esi
je 0x41819b
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
push 0
push 0x80
push 3
push 0
push 1
push connect
push edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4181ad
push esi
call fcn.0043e0be
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x64]
push 0
push eax
push 0x400
push esi
push edi
call ebx
test eax, eax
je 0x4181ef
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4181ef
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00420110
add esp, 0xc
lea eax, [ebp - 0x64]
push 0
push eax
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x4181c7
push 0x400
push 0
push esi
call fcn.0043fa60
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.00420460
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push dword [ebp + 8]
push dword [ebp - 0x68]
call fcn.0040f950
add esp, 0x60
push esi
call fcn.0043e0be
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x418e30
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x4630b0]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x14], eax
add esi, 4
cmp esi, 0x10
jl 0x418e60
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x418e82
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x18]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret