joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e327
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00441e41
xor ebx, ebx
cmp dword [0x4729a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44e3fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44e4dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44e4dd
push eax
call fcn.00441dd3
mov dword [esp], 0x45ddc0
push edi
mov dword [0x4729a8], eax
call esi
push eax
call fcn.00441dd3
mov dword [esp], 0x45ddac
push edi
mov dword [0x4729ac], eax
call esi
push eax
call fcn.00441dd3
mov dword [0x4729b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a4fe
test eax, eax
pop ecx
pop ecx
je 0x44e3cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad2d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44e3fd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00441dd3
cmp eax, ebx
pop ecx
mov dword [0x4729b8], eax
je 0x44e3fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00441dd3
pop ecx
mov dword [0x4729b4], eax
mov eax, dword [0x4729b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44e482
cmp dword [0x4729b8], ecx
je 0x44e482
push eax
call fcn.00441e4a
push dword [0x4729b8]
mov esi, eax
call fcn.00441e4a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44e482
cmp edi, ebx
je 0x44e482
call esi
cmp eax, ebx
je 0x44e44f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44e44f
test byte [ebp - 0x18], 1
jne 0x44e482
lea eax, [ebp - 0x10]
push eax
call fcn.0043a535
test eax, eax
pop ecx
je 0x44e46a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad2d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44e479
or dword [ebp + 0x10], 0x200000
jmp 0x44e4bd
or dword [ebp + 0x10], 0x40000
jmp 0x44e4bd
mov eax, dword [0x4729ac]
cmp eax, dword [ebp - 8]
je 0x44e4bd
push eax
call fcn.00441e4a
cmp eax, ebx
pop ecx
je 0x44e4bd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44e4bd
mov eax, dword [0x4729b0]
cmp eax, dword [ebp - 8]
je 0x44e4bd
push eax
call fcn.00441e4a
cmp eax, ebx
pop ecx
je 0x44e4bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4729a8]
call fcn.00441e4a
cmp eax, ebx
pop ecx
je 0x44e4dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44e4df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454d06
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00454c9b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043c6b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x454d55
cmp dword [ebp - 0x1c], 5
jb 0x454d6d
jmp 0x454d69
cmp dword [ebp - 0x10], 1
jne 0x454d6d
cmp dword [ebp - 0x1c], 4
ja 0x454d69
jne 0x454d6d
cmp dword [ebp - 0x18], 0
jbe 0x454d6d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45edf4
call fcn.00454b8c
test eax, eax
jge 0x454d8e
mov byte [0x472e1c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00439e3e
add ebp, 0x78
leave
ret
Function at 0x401170
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4011de
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4011af
cmp eax, 2
jne 0x4011ca
test esi, esi
mov eax, dword [esp]
je 0x4011d8
test eax, eax
je 0x4011d3
test al, 1
jne 0x4011ca
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4011d8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x401d50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x98]
sub ecx, 0
push edi
mov eax, 1
je 0x401e29
sub ecx, eax
je 0x401e06
sub ecx, eax
jne 0x401e80
mov eax, dword [esi + 0x10]
push eax
lea edx, [ecx + 0x14]
call fcn.004042d0
add esp, 4
cmp eax, 0xffffffff
jne 0x401d9d
xor edi, edi
jmp 0x401e38
test eax, eax
push 0
jne 0x401dee
call dword [sym.imp.MSVCR80.dll__time64]
mov ecx, dword [esi + 0x9c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x14], edx
jle 0x401de5
sub eax, dword [esi + 0x18]
imul eax, eax, 0x3e8
cmp eax, ecx
jle 0x401de5
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x401dd3
mov ecx, 0x421314
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 1
push 0
call eax
xor edi, edi
jmp 0x401e38
mov ecx, esi
call fcn.004023d0
jmp 0x401e32
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call fcn.00402280
jmp 0x401e32
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
mov edi, eax
cmp edi, 1
jne 0x401e34
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x401e34
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jne 0x401e7e
mov ebx, dword [esi + 0x10]
cmp ebx, 0xffffffff
mov dword [esi + 0x98], 0
je 0x401e77
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push ebx
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_setsockopt
push 2
push ebx
call sub.WS2_32.dll_shutdown
push ebx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x10], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f21
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x9c]
push eax
mov ecx, 1
call fcn.004042d0
add esp, 4
test eax, eax
jge 0x401f5e
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x401f4b
mov ecx, 0x421314
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 2
push 0
call eax
xor eax, eax
pop esi
pop ecx
ret
jne 0x401f7f
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x401f6c
mov ecx, 0x421314
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 1
push 0
call eax
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esi + 0x10]
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x10], 0
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x401fa6
mov ecx, 0x421314
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
push 0
push 3
push 0
call edx
mov dword [esi + 0x98], 2
mov eax, 1
pop esi
pop ecx
ret

Function at 0x401fd1
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
cmp edi, 0xffffffff
je 0x40200a
push 4
lea eax, [esp + 0xc]
push eax
push 0x80
push 0xffff
push edi
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_setsockopt
push 2
push edi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
cmp byte [esp + 0x10], 0
mov dword [esi + 0x10], 0xffffffff
je 0x402021
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edi, dword [esi + 0x10]
cmp edi, 0xffffffff
mov dword [esi + 0x98], 0
je 0x402060
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push edi
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_setsockopt
push 2
push edi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
pop edi
mov dword [esi + 0x10], 0xffffffff
pop esi
pop ecx
ret 4

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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [ebx + 0xc]
push esi
xor esi, esi
sub eax, dword [ebx + 4]
push edi
mov dword [esp + 0x14], eax
lea esp, [esp]
sub eax, esi
cmp eax, 0x400
mov edi, 0x400
jg 0x402700
mov edi, eax
mov ecx, 1
push ebp
lea edx, [ecx + 0x13]
call fcn.004042d0
add esp, 4
test eax, eax
jl 0x40273b
je 0x402763
mov eax, dword [ebx + 4]
add eax, dword [ebx]
push 0
push edi
add eax, esi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x402746
add esi, eax
cmp esi, dword [esp + 0x14]
jge 0x40276d
mov eax, dword [esp + 0x14]
jmp 0x4026f0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
ja 0x40273b
call dword [sym.imp.MSVCR80.dll___iob_func]
mov ecx, esi
call fcn.00403e00
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x402b40
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.0040e4c0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x41b85c
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov byte [esp + 0x1f], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x402b82
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call dword [sym.imp.MSVCR80.dll_feof]
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
test eax, eax
jne 0x402c39
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
call esi
add esp, 0x10
cmp eax, ebx
jg 0x402c10
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x402c33
mov eax, dword [esp + 0x14]
push eax
call edi
mov byte [esp + 0x17], bl
jmp 0x402c1e
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004056e0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
je 0x402bd4
cmp byte [esp + 0x13], bl
je 0x402c45
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.004057b0
mov eax, dword [esp + 0x14]
push eax
call edi
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404290
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp esi, 0xffffffff
je 0x4042c3
push 4
lea eax, [esp + 4]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_setsockopt
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
pop ecx
ret
Function at 0x4042d0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2010
call fcn.0040e4c0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2024]
cmp edi, 0xffffffff
mov esi, edx
jne 0x4042f9
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
cmp esi, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
lea ebp, [edi + 1]
jne 0x40434f
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
push 0
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x4043b0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x404325
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub esi, eax
imul esi, esi, 0x3e8
mov dword [esp + 0x14], esi
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
mov edi, edi
lea eax, [esp + 0x10]
push eax
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x4043b0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x404390
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret

Function at 0x404420
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x404490
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
jne 0x404443
xor al, al
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov ecx, dword [esi + 4]
test ecx, ecx
jg 0x40445d
push 0xa
call edi
jmp 0x404450
mov edx, dword [esi + 4]
mov al, 1
pop edi
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x10]
xor ebx, ebx
mov edi, eax
sub ebp, edx
lea ebx, [ebx]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x10]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [esp + ebx*4 + 0x10], eax
add ebx, 1
cmp ebx, 4
jl 0x405970
xor eax, eax
lea ecx, [eax + 0x10]
nop
mov edx, edi
shr edx, 5
add edx, dword [esp + 0x14]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x10]
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 + 0x1c]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
sub ecx, 1
jne 0x405990
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x28]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4059f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
mov esi, eax
sub ebp, edx
lea ebx, [ebx]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x405a20
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x405a50
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 0x405a50
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x406060
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
xor esi, esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp ebx, 2
mov ecx, eax
jle 0x40614a
lea edx, [ebx - 3]
mov eax, 0xaaaaaaab
mul edx
push ebp
mov ebp, edx
shr ebp, 1
add ebp, 1
lea eax, [ebp*4]
sub eax, ebp
neg eax
add ebx, eax
mov dword [esp + 0x14], ebx
lea esp, [esp]
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
mov edx, eax
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
and eax, 3
shl eax, 4
mov edx, ebx
shr edx, 4
movzx eax, byte [edx + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edi + 2]
add esi, 1
mov edx, eax
shr edx, 6
and ebx, 0xf
movzx edx, byte [edx + ebx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add esi, 1
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
add esi, 1
mov byte [ecx + esi], al
add esi, 1
add edi, 3
sub ebp, 1
jne 0x4060e0
mov ebx, dword [esp + 0x14]
pop ebp
test ebx, ebx
je 0x4061ac
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
add esi, 1
shl eax, 4
cmp ebx, 1
jle 0x406192
movzx edx, byte [edi + 1]
mov edi, edx
shr edi, 4
mov al, byte [edi + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
add esi, 1
and edx, 0xf
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
jmp 0x4061a2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
add esi, 1
mov byte [ecx + esi], 0x3d
add esi, 1
mov byte [ecx + esi], 0x3d
add esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [ecx + esi], 0
je 0x4061ba
mov dword [eax], esi
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x406860
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebp, ecx
jne 0x40687d
push edi
push edi
push edi
push 2
call fcn.00408c50
pop edi
xor eax, eax
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push esi
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_ftell]
mov esi, dword [esp + 0x2c]
push 0
push 0
push edi
mov dword [esi], eax
call ebx
mov eax, dword [esi]
add esp, 0x1c
test eax, eax
jg 0x4068b8
mov dword [esi], 0
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 0xc
add eax, 1
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esi]
push edi
push 1
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4068f6
mov edx, dword [esp + 0x14]
push edx
mov dword [esi], 0
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 0xc
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
mov byte [ecx + eax], 0
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.0040af50
mov eax, dword [esp + 0x14]
pop esi
pop ebx
pop edi
pop ebp
ret 0xc

Function at 0x407010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415fc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebp, ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], ebp
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], ebp
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ebx, [esi + 0x30]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call dword [0x41842c]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebx
call dword [0x41842c]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40b660
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4163cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov dword [esp + 8], 0
mov esi, dword [esp + 0x240]
mov ecx, esi
mov dword [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x208
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x244], 0
mov dword [esp + 0x14], 1
call sub.MSVCR80.dll_memset
mov bl, byte [esp + 0x250]
add esp, 0xc
mov cl, bl
neg cl
push 1
lea edx, [esp + 0x2c]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b75d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
mov ecx, esi
mov dword [esp + 0x23c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xc]
mov byte [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
mov ecx, esi
je 0x40b72f
push str.TencentDeskUpdate
jmp 0x40b734
push str.TencentDesktop
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push esi
call fcn.0040b0a0
add esp, 4
test al, al
jne 0x40b750
push esi
call fcn.0040b1f0
add esp, 4
push str.Global.db
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esp + 0x230]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret