joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4149d0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 5
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x414a50
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x414a22
mov ecx, dword [ebp - 4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
push edi
mov ecx, 0x40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push edx
mov word [ebx + 0x206], 0
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414ca0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x414cb8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414cea
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 3
push 0x42fbac
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x414d1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea esi, [ebp - 8]
call fcn.00419060
mov esi, dword [ebp - 8]
mov eax, dword [esi - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
test eax, eax
push edi
jne 0x414d6a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414d61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414da0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x414ded
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414df6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x42a75c
call fcn.00419910
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x4366ec], 0
mov ebx, eax
jne 0x414e46
cmp dword [ebp - 4], 0
jne 0x414e21
cmp ebx, 0x500000
jbe 0x414e46
mov edx, dword [edi]
push edx
push str.add_zip._file_size_over_5M____s_
push 0x42a75c
call fcn.00419910
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x414e36
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414e83
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
test eax, eax
jbe 0x414ebc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00417bb0
test al, al
je 0x414ebc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push str.add_zip_success.___s_
push 0x42a75c
call fcn.00419910
add esp, 0xc
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415350
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
jne 0x41535e
xor edx, edx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415385
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push 1
push 0
push 0
push ecx
call fcn.00426170
xor ecx, ecx
add eax, edi
pop edi
adc edx, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4153c0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x415478
cmp dword [ebp + 8], 0
je 0x4154d7
lea ecx, [ebp - 8]
push ecx
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41546c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x415478
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.FullDump
push edx
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x4154be
cmp eax, 2
je 0x4154be
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.HASH
push eax
call esi
jmp 0x4154cd
mov ecx, dword [ebp - 4]
push str.HASH
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4154f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], 0
call fcn.00425b9e
add esp, 0xc
push 1
push 0x1a
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x415574
push 0x42e33c
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQMiscQQTroubleShoot
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4155bc
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4155bc
call fcn.00413760
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
push 0x42e33c
lea ecx, [ebp - 0x20c]
push ecx
call esi
push edi
lea ecx, [ebp - 0x20c]
call fcn.00405e20
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042575e
mov esp, ebp
pop ebp
ret
Function at 0x415740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427076
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
test edi, edi
mov dword [ebp - 0x644], eax
je 0x41583c
lea ecx, [ebp - 0x640]
push ecx
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
lea edx, [ebp - 0x634]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4157cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x41583c
push 0x618
lea ecx, [ebp - 0x62e]
push esi
push ecx
mov word [ebp - 0x630], si
call fcn.00425b9e
add esp, 0xc
lea edx, [ebp - 0x64c]
push edx
mov edx, dword [ebp - 0x634]
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
push ecx
push esi
push str.ExtRptFile
push edx
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x415843
mov eax, dword [ebp - 0x634]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4158ef
lea ecx, [ebp - 0x63c]
push ecx
lea ecx, [ebp - 0x630]
call fcn.00405e20
lea edx, [ebp - 0x638]
push edx
mov ecx, 0x42e4cc
mov dword [ebp - 4], 0
call fcn.00405e20
mov eax, dword [ebp - 0x644]
push eax
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x63c]
push edx
mov byte [ebp - 4], 1
call fcn.004193a0
mov eax, dword [ebp - 0x634]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
Function at 0x415910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427036
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x436024]
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 eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x650], ecx
je 0x415a17
lea edx, [ebp - 0x658]
push edx
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4159a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x415a17
push 0x410
lea ecx, [ebp - 0x636]
push ebx
push ecx
mov word [ebp - 0x638], bx
call fcn.00425b9e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [ebp - 0x648]
push edx
mov edx, dword [ebp - 0x640]
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x64c]
push ecx
push ebx
push str.InstallDir
mov edi, 1
push edx
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x648], 0x208
call esi
cmp eax, ebx
je 0x415a1e
mov eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x415b43
lea ecx, [ebp - 0x63c]
push ecx
lea ecx, [ebp - 0x638]
call fcn.00405e20
lea edx, [ebp - 0x644]
push edx
mov ecx, 0x42e4cc
mov dword [ebp - 4], ebx
call fcn.00405e20
mov eax, dword [ebp - 0x654]
push eax
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x63c]
push edx
mov byte [ebp - 4], 1
call fcn.004193a0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x21e]
push ebx
push eax
mov word [ebp - 0x220], bx
call fcn.00425b9e
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
mov ecx, dword [ebp - 0x640]
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x64c]
push eax
push ebx
push str.ExcDir
push ecx
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x648], 0x104
call esi
cmp eax, ebx
jne 0x415ae3
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x63c]
call fcn.00401640
mov edx, dword [ebp - 0x650]
push edx
lea eax, [ebp - 0x644]
push eax
mov ecx, edi
push ecx
call fcn.004193a0
add esp, 0xc
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0042575e
mov esp, ebp
pop ebp
ret
Function at 0x415e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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 0x415e6e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x415e3d
cmp eax, 2
jne 0x415e58
test esi, esi
mov eax, dword [ebp - 4]
je 0x415e68
test eax, eax
je 0x415e63
test al, 1
jne 0x415e58
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x415e68
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x418430
Capabilities:
Allocate or change rwx memory

Disassembly:
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41848a
push 0x40
call fcn.0042574c
add esp, 4
push 0
push 0x40
push 0x40
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 8]
mov byte [ecx], 0xb9
mov edx, dword [esi + 8]
mov byte [edx + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x4184d0
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi]
push edx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x4188e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
test edi, edi
jne 0x418905
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebx]
mov eax, dword [edx]
push edi
mov ecx, ebx
call eax
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x418941
mov esi, dword [eax]
push 0
push 0x2710
push 0x64
push edi
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
push eax
push edi
push ecx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push edi
mov ecx, ebx
call edx
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], 0
mov dword [ebp - 0xc], eax
je 0x4189ca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x4189ca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x4189ca
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
je 0x4189a1
mov eax, esi
lea esi, [ebp - 0x1c]
call fcn.00418430
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
push 0
push ecx
push edx
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
lea esi, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call fcn.00418490
mov esi, dword [ebp + 0x10]
jmp 0x4189e6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push esi
push 0
push eax
push ecx
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx - 0x64]
cmp edx, 0x26ac
ja 0x418a44
mov ebx, dword [ebx + 4]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
add ecx, 0xffffff9c
movzx eax, cx
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x24
mov dword [ebp - 0x28], 1
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
push edx
push ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push esi
push ecx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267f3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x4366f0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], 0x42ff58
mov dword [edi], 0x4366f0
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x42e552
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.0041a9e0
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e550
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x24]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
je 0x41e643
xor esi, esi
cmp dword [ebp - 0x650], esi
jne 0x41e5a3
cmp dword [ebp - 0x64c], 0x500000
jbe 0x41e63c
mov ecx, edi
lea eax, [ebp - 0x41c]
mov word [ebp - 0x41c], si
call fcn.004197c0
mov ecx, edi
lea eax, [ebp - 0x214]
mov word [ebp - 0x214], si
call fcn.004197c0
mov ecx, 0x430310
lea eax, [ebp - 0x41c]
call fcn.004197c0
mov ecx, 0x430318
lea eax, [ebp - 0x214]
call fcn.004197c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x214]
push ecx
call ebx
test eax, eax
jne 0x41e613
cmp esi, 2
jge 0x41e60b
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 3
jl 0x41e5f1
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
call esi
lea ecx, [ebp - 0x41c]
push ecx
push edi
call esi
push edi
call ebx
mov eax, dword [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042575e
mov esp, ebp
pop ebp
ret 4
Function at 0x41e660
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x436024]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x18], eax
call fcn.0041ec60
mov dword [ebx + 0x1c], eax
call fcn.0041ecc0
xor edi, edi
push 0x206
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.00425b9e
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41e6c7
sub eax, edx
sar eax, 1
lea ecx, [esp + eax*2 + 8]
lea edx, [esp + 8]
cmp ecx, edx
jbe 0x41e6fd
movzx eax, word [ecx - 2]
cmp ax, 0x5c
je 0x41e6fd
cmp ax, 0x2f
je 0x41e6fd
add ecx, 0xfffffffe
lea eax, [esp + 8]
cmp ecx, eax
ja 0x41e6e2
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x41e702
sub eax, esi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
lea ecx, [esp + 8]
push 0x2e
push ecx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
cmp eax, edi
je 0x41e73c
mov word [eax], di
cmp word [esp + 8], di
lea eax, [esp + 8]
jne 0x41e753
mov word [esp + 8], di
mov ecx, str.log.tlg
jmp 0x41e758
mov ecx, str..tlg
call fcn.004197c0
push 1
lea esi, [ebx + 0x24]
push 0x1a
push esi
mov word [esi], di
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [esi], di
je 0x41e7a3
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41e780
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 + 0x22], 0x5c
je 0x41e7a3
mov ecx, 0x42e33c
mov eax, esi
call fcn.004197c0
mov ecx, str.Tencent_
mov eax, esi
call fcn.004197c0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call edi
mov ecx, str.Logs_
mov eax, esi
call fcn.004197c0
push 0
push esi
call edi
lea ecx, [esp + 8]
mov eax, esi
call fcn.004197c0
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e808
mov byte [ebx + 0x23f], 1
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041e550
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0042575e
mov esp, ebp
pop ebp
ret