joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e190
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push esi
push 2
push 1
push 0x45a518
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ax, word [0x45a518]
add esp, 0x20
cmp al, 0xff
jne 0x43e1cb
cmp ah, 0xfe
jne 0x43e1f7
mov eax, 2
pop esi
ret
cmp al, 0xef
jne 0x43e1f7
cmp ah, 0xbb
jne 0x43e1f7
push esi
push 1
push 1
push 0x45a518
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x45a518], 0xbf
jne 0x43e1f7
mov eax, 1
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop esi
ret

Function at 0x43e210
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
push edi
push 0
push 0x2000000
push 3
push 0
push 2
push 0x100
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e291
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x3c]
push ecx
call esi
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x2c]
push eax
call esi
lea eax, [esp + 0xc]
push eax
lea eax, [ebx + 0x1c]
push eax
call esi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop esi
test eax, eax
jne 0x43e28a
push dword [esp + 0x24]
call sym.luart_static.exe_lua_error
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
add esp, 0x18
ret

Function at 0x43e4e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
push dword [sym.luart_static.exe_TFile]
push 1
push dword [esp + 0x14]
call sym.luart_static.exe_lua_toself
add esp, 0xc
mov ebx, eax
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push dword [esp + 0x10]
mov edi, eax
call sym.luart_static.exe_lua_toboolean
add esp, 8
test eax, eax
je 0x43e528
or edi, dword [esp + 0x10]
push edi
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
not eax
and edi, eax
push edi
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop ebx
ret

Function at 0x43ef70
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edi, [eax + 1]
lea ecx, [edi + edi]
push ecx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
pop edi
mov eax, esi
pop esi
ret
Function at 0x43efb0
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
mov ebp, dword [esp + 0x268]
push esi
push edi
mov edi, dword [esp + 0x26c]
push 0x45194c
push ebp
mov dword [esp + 0x18], edi
call fcn.0042f1a0
mov esi, eax
push esi
call fcn.0043f220
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call ebx
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f109
lea eax, [esp + 0x14]
push eax
push 0x454174
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f0e6
mov ecx, 0x45417c
lea eax, [esp + 0x40]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f056
test dx, dx
je 0x43f052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f056
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f030
xor eax, eax
jmp 0x43f05b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f0d2
mov ecx, 0x454180
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f08e
test dx, dx
je 0x43f08a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f08e
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f068
xor eax, eax
jmp 0x43f093
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f0d2
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0042f1a0
add esp, 8
mov esi, eax
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x40]
je 0x43f0be
push esi
push eax
call fcn.0043efb0
add esp, 8
jmp 0x43f0c8
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43f109
push esi
call ebx
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43f023
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44ef88
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x43f10b
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c1b1
add esp, 0x258
ret
Function at 0x43f220
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
movzx ecx, word [ebx]
xor edx, edx
add esp, 4
mov edi, eax
mov eax, ecx
lea ebp, [edx + 0x5c]
test cx, cx
je 0x43f260
xor ecx, ecx
mov esi, eax
cmp si, 0x2f
jne 0x43f251
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x43f247
push 0x5c
push edi
mov dword [esp + 0x1c], 1
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x43f2dd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp word [esi - 2], 0x3a
mov word [esi], ax
je 0x43f2a2
push eax
push edi
call ebx
test eax, eax
jne 0x43f2a2
call ebp
cmp eax, 0xb7
jne 0x43f2d5
mov eax, 0x5c
mov word [esi], ax
sub esi, edi
sar esi, 1
inc esi
push eax
lea eax, [edi + esi*2]
push eax
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f285
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esp + 0x14], 0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43f2f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x254
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f40e
lea eax, [esp + 0x10]
push eax
push 0x454174
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f3f3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x45417c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f386
test dx, dx
je 0x43f382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f386
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f360
xor eax, eax
jmp 0x43f38b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3e3
mov eax, 0x454180
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43f3be
test dx, dx
je 0x43f3ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43f3be
add ecx, 4
add eax, 4
test dx, dx
jne 0x43f398
xor eax, eax
jmp 0x43f3c3
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3e3
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
je 0x43f3dd
call fcn.0043f2f0
add esp, 4
jmp 0x43f3df
call edi
test eax, eax
je 0x43f40e
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x43f350
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44ef88
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43f410
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c1b1
add esp, 0x254
ret
Function at 0x441420
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.luart_static.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x44149e
push edi
call sym.luart_static.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_next
add esp, 0xc
test eax, eax
je 0x44149e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.luart_static.exe_lua_touserdata
add esp, 0x14
push eax
call ebx
push esi
call ebp
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x441460
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
Function at 0x4414b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
cmp dword [0x45a51c], 0
jne 0x44161f
push ebx
push esi
push edi
push 0xa
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [0x45a51c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [0x45a51c]
mov ebx, eax
test edi, edi
je 0x441560
cmp ebx, 2
jbe 0x441560
push 0x4e018
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 4
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x44153b
lea eax, [esp + 0x10]
mov byte [edi], 0x50
push eax
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x806
push ebx
push edi
push esi
mov dword [esi + 0x50], 6
call fcn.004322f0
add esp, 0x10
test eax, eax
jne 0x441573
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
mov dword [0x45a4fc], 0
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [0x45a4fc], esi
test esi, esi
je 0x441560
mov ebx, dword [esp + 0x18]
push str.package
push ebx
call sym.luart_static.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push ebx
call sym.luart_static.exe_lua_getfield
push 0xffffffffffffffff
push ebx
call sym.luart_static.exe_luaL_len
push 0xfffffffffffffffe
push ebx
mov edi, eax
mov esi, edx
call sym.luart_static.exe_lua_pushvalue
push 1
push 0x441920
push ebx
call sym.luart_static.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.luart_static.exe_lua_rawseti
add esp, 0x40
push 0xfffffffffffffffe
push ebx
call sym.luart_static.exe_lua_pushvalue
push 1
push 0x4416e0
push ebx
call sym.luart_static.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.luart_static.exe_lua_rawseti
push 0xfffffffffffffffd
push ebx
call sym.luart_static.exe_lua_settop
add esp, 0x2c
push 0x1000
call dword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
push 0x45aaa0
call dword [sym.imp.KERNEL32.dll_AddDllDirectory]
mov eax, dword [0x45a4fc]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [0x45a4fc]
add esp, 8
ret
Function at 0x4439c0
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push ebx
push esi
push edi
mov edi, dword [esp + 0x60]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
push eax
mov edi, dword [edi + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call dword [0x4556d4]
mov eax, dword [esp + 0x70]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x443b54
push ebp
mov esi, eax
mov eax, dword [edi + 0x10]
sub esi, ebx
cmp dword [edi + 0x18], esi
cmovb esi, dword [edi + 0x18]
add eax, dword [edi + 0x14]
add eax, esi
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x443b32
mov eax, dword [esp + 0x14]
add eax, ebx
push esi
push eax
mov eax, dword [edi + 0x10]
add eax, ebp
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 7
lea ecx, [eax + ebp]
mov dword [esp + 0x30], ebp
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x74]
push 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 6
mov dword [esp + 0x5c], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
push dword [eax + 0xc]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x443b15
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x28]
push 0
push eax
push ebp
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x443b1c
mov esi, dword [esp + 0x10]
add esi, eax
push ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, dword [edi + 0x18]
add esp, 4
mov eax, dword [esp + 0x6c]
cmp ebx, eax
jb 0x443a08
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0044c1b1
add esp, 0x4c
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0044c1b1
add esp, 0x4c
ret
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0044c1b1
add esp, 0x4c
ret
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c1b1
add esp, 0x4c
ret
Function at 0x4440d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0xa8]
push esi
push edi
mov edi, dword [esp + 0xa8]
push 0
push ecx
push 0
push 0
push ebx
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
test esi, esi
jne 0x44418b
cmp bx, 1
jne 0x444129
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x444174
cmp bx, 0x1c
jne 0x44416d
push 0x80
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
movups xmm0, xmmword [eax + 0x18]
push 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push 0x17
movups xmmword [esp + 0x20], xmm0
call sub.WS2_32.dll_inet_ntop
lea eax, [esp + 0x20]
push eax
jmp 0x444174
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
push edi
call dword [0x455668]
add esp, 8
push 1
push dword [esp + 0x10]
call sub.DNSAPI.dll_DnsFree
jmp 0x4441c2
cmp esi, 0x251d
je 0x4441b8
cmp esi, 0x25e5
je 0x4441b8
cmp esi, 0x232b
je 0x4441b8
push 0
push edi
call dword [0x4556d4]
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4441c2
push edi
call dword [0x4556c8]
add esp, 4
mov ecx, dword [esp + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c1b1
add esp, 0x98
ret
Function at 0x44a850
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call dword [0x4556d8]
push 1
push 0x44a690
push edi
call dword [0x455724]
push 1
push str.Task
push edi
call dword [0x4556a0]
push 0xffffffffffffffff
push edi
call dword [0x455714]
add esp, 0x28
push 0
push 0
push esi
push dword [esp + 0x20]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x44a8b8
push 0
push 0
push 0
push 0
push edi
call dword [0x455730]
add esp, 0x14
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [0x455710]
push 0
push 0xffffffffffffffff
push edi
call dword [0x455664]
push eax
push str.async_error_:__s
push edi
call dword [0x4556f8]
add esp, 0x20
pop edi
pop esi
ret

Function at 0x44b1e0
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
push 0x45a538
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [esp + 0xc]
push 0x44b1c0
push 0x454fd8
push 0x455000
push 0x44e764
push edi
call dword [0x455764]
mov esi, dword [sym.luart_static.exe_lua_registerobject]
push 0x454930
push 0x454890
push 0x443d50
push str.Socket
push 0x45aa74
push edi
call esi
push 0x454a58
push 0x4549e8
push 0x446570
push str.Http
push 0x45a528
push edi
call esi
add esp, 0x44
push 0x454f70
push 0x454ef0
push 0x44a0a0
push 0x455140
push 0x45a52c
push edi
call esi
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret

Function at 0x44bd40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push str.AdvAPI32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CryptDecrypt
push eax
mov dword [0x45a714], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44bd20
push 0x455490
push 0x455470
push str.crypto
push dword [esp + 0x14]
mov dword [0x45a710], eax
call sym.luart_static.exe_lua_registermodule
push 0x455180
push 0x455148
push 0x44b7c0
push str.Cipher
push 0x45aa70
push dword [esp + 0x2c]
call sym.luart_static.exe_lua_registerobject
add esp, 0x2c
push 0xf0000000
push 0x18
push 0
push 0
push 0x45a70c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, 1
ret

Function at 0x44ce41
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44ce80
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44ce80
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44ce80
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44ce80
cmp dword [ecx + 0x74], 0xe
jbe 0x44ce80
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43b653
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add ebx, edi
sub ebx, ebx
call fcn.0043b692
mov ebx, 0x27d9f9ca
push edi
pop edi
xor dword [ecx], eax
add edi, 1
and ebx, edi
add ecx, 1
push ebx
mov edi, dword [esp]
add esp, 4
cmp ecx, esi
jne fcn.0043b653
mov edi, 0xdc88f203
ret
Function at 0x409229
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x40939c
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push str._sConnection
push 0x103
push eax
call fcn.0040e646
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x409393
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x40938a
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x40938a
cmp dword [ebp - 0x70], edi
jne 0x40937a
mov esi, 0x457c20
push esi
call fcn.0042e0a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0042f7be
add esp, 0x10
test eax, eax
jne 0x409354
mov dword [ebp - 0x6c], ebx
jmp 0x40938a
cmp dword [ebp - 0x70], edi
jne 0x40937a
push esi
call fcn.0042e0a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0042f7be
add esp, 0x10
test eax, eax
je 0x40937a
mov dword [ebp - 0x6c], 2
jmp 0x40938a
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba38
add ebp, 0xa4
leave
ret
Function at 0x409855
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x45274d
call fcn.0044729e
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.0042b930
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409925
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.00409d4b
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.0040a1d5
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.0040a106
cmp byte [ebp + 8], bl
je 0x4098fd
push str.TencentDeskUpdate
jmp 0x409902
push str.TencentDesktop
push edi
call fcn.00409d90
mov ecx, edi
call fcn.0040992d
test al, al
jne 0x40991a
mov ecx, edi
call fcn.004099f9
push str.Global.db
push edi
call fcn.00409d90
mov eax, edi
call fcn.00447321
ret

Function at 0x40a6cd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40a6e0
push 0x80004005
call fcn.00401568
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x40a744
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40a798
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a7a9
cmp dword [ebp - 0x7c], 6
jne 0x40a7a9
cmp dword [ebp - 0x78], 0
jne 0x40a7a9
xor eax, eax
inc eax
jmp 0x40a7ab
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0xa0
leave
ret

Function at 0x40a7c1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40a815
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a823
cmp dword [ebp - 0x7c], 6
jne 0x40a823
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x40a825
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0xa0
leave
ret