joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3eb
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x42428f
call fcn.00421d3b
xor ebx, ebx
push ebx
mov esi, ecx
push 2
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x244], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x250], edi
jne 0x40d431
push esi
mov ecx, 0x42a598
call fcn.00404a23
mov eax, esi
jmp 0x40d5bb
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40d455
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d41f
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 0x254], ebx
mov esi, str._c_d
push dword [ebp - 0x238]
or dword [ebp - 0x24c], 0xffffffff
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040d315
add esp, 0xc
test eax, eax
jne 0x40d50f
cmp dword [ebp - 0x24c], 0xffffffff
je 0x40d4f3
movzx eax, word [ebp - 0x21c]
push dword [ebp - 0x24c]
add edi, 0xa
push eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00413956
add esp, 0x10
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 2
call fcn.00404ac0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d47b
jmp 0x40d551
movzx eax, word [ebp - 0x21c]
push dword [ebp - 0x24c]
add edi, 0x14
push eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00413956
add esp, 0x10
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 1
call fcn.00404ac0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.0040167f
cmp edi, ebx
jbe 0x40d58b
push edi
lea eax, [ebp - 0x244]
push 0x42c8a8
push eax
call fcn.00413956
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
mov byte [ebp - 4], 3
call fcn.00404ac0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.0040167f
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x248]
add esi, 0xfffffff0
mov eax, esi
call fcn.00405607
mov edi, dword [ebp - 0x258]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040167f
mov eax, edi
call fcn.00421dbe
ret
Function at 0x40d92d
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x414
mov eax, 0x4235a0
call fcn.00421d3b
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
call fcn.004047aa
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x414], ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x41c], 1
jmp 0x40d9c2
cmp dword [ebp - 0x414], 0
je 0x40d9dc
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
mov eax, esi
call fcn.00405969
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x418]
call edi
test eax, eax
jne 0x40d989
push 0x42c968
mov edi, 0x4294a4
push edi
call fcn.00417869
pop ecx
pop ecx
jmp 0x40d9e1
mov edi, 0x4294a4
push dword [esi]
lea eax, [ebp - 0x418]
push eax
call fcn.00417304
mov ebx, dword [ebp - 0x418]
push ebx
push str.Received_cmd3_ack_s
push edi
call fcn.00417869
mov eax, dword [esi]
add esp, 0x14
cmp dword [eax - 0xc], 0
jne 0x40da19
push 0x42c9f0
push edi
call fcn.00417869
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040167f
mov eax, esi
call fcn.00421dbe
ret

Function at 0x40dd4b
Capabilities:
Connect to http server

Disassembly:
push 0x10
mov eax, 0x423563
call fcn.00421cd2
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
lea ebx, [ebp - 0x10]
call fcn.0040d666
test eax, eax
jne 0x40dd9a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
call fcn.00421daa
ret 0xc
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 0x10]
push ebx
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi], eax
jne 0x40ddbd
lea eax, [ebx - 0x10]
jmp 0x40dd8b
push 0x42cb50
push 0x4294a4
call fcn.00417869
pop ecx
pop ecx
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push str.HTTP_1.1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], str.text_
push str.POST
push dword [esi]
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x40de16
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], edi
lea eax, [ebx - 0x10]
call fcn.0040167f
mov eax, edi
jmp 0x40dd92
xor edi, edi
inc edi
jmp 0x40de07
Function at 0x410184
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4246e5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x435024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
mov esi, 0x4294a4
push str.SendCMD3:_KEY_lu
push esi
call fcn.00417869
pop ecx
pop ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0040dfbc
lea eax, [esp + 0x24]
push eax
call fcn.0040fe57
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push dword [ebp + 8]
push str.Key_luData_s
push eax
call fcn.00405c3e
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push edi
mov dword [edi + 4], ebx
call fcn.0040de1b
test eax, eax
je 0x4102c4
mov eax, dword [esp + 0x18]
push dword [eax - 0xc]
push eax
push ebx
push ebx
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x4102a3
push 0x42cee8
push esi
call fcn.00417869
mov edx, dword [esp + 0x1c]
pop ecx
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0040d92d
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
je 0x410299
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00405557
add eax, 0x10
mov dword [esi], eax
call fcn.0040da29
call fcn.0040dcc0
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], 1
add eax, 0xfffffff0
call fcn.0040167f
jmp 0x4102b0
push 0x42cefc
push esi
call fcn.00417869
pop ecx
pop ecx
push dword [esp + 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [esp + 0x14]
call esi
jmp 0x4102d1
push 0x42cf10
push esi
call fcn.00417869
pop ecx
pop ecx
mov eax, dword [esp + 0x18]
mov edi, dword [edi + 4]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410675
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0x418
mov eax, 0x42332e
call fcn.00421d3b
push str.http:__qqhelper.qq.com:8080_site_media_QQTroubleShoot.exe
lea eax, [ebp - 0x418]
push eax
mov ebx, ecx
mov edi, edx
call fcn.0040a7af
lea eax, [ebp - 0x424]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004140ef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x414]
mov dword [esp], str.QQTroubleShoot.exe
push ecx
mov ecx, eax
call fcn.00404c06
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404a7f
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.0040167f
mov edi, dword [edi]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4107c6
push esi
push SysReAllocString
push esi
push esi
push dword [ebp - 0x418]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0x414], eax
je 0x4107c6
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x41c]
push ecx
push 0x3ff
lea ecx, [ebp - 0x410]
push ecx
push eax
jmp 0x4107a1
cmp dword [ebp - 0x41c], esi
je 0x4107dc
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4107b3
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x420]
jne 0x4107b3
lea eax, [ebp - 0x41c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], esi
call ebx
test eax, eax
jne 0x41074e
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
call fcn.00421dbe
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
inc eax
jmp 0x4107d6
Function at 0x411b41
Capabilities:
Read .ini file

Disassembly:
push 0x444
mov eax, 0x422c7a
call fcn.00421d3b
xor edi, edi
push 0x422
lea eax, [ebp - 0x436]
push edi
push eax
mov word [ebp - 0x438], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x212
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.bugreport.ini
lea eax, [ebp - 0x438]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
push 0x8000
call fcn.00421302
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x438]
push eax
push 0x4000
push ebx
push str.STRINGTABLE
mov dword [ebp - 0x444], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x411cb6
cmp word [ebx], di
je 0x411cb6
lea eax, [ebp - 0x43c]
push eax
mov ecx, ebx
call fcn.00404a23
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.00409663
push 0x42d0d0
xor ecx, ecx
lea esi, [ebp - 0x43c]
call fcn.00414be1
mov esi, eax
cmp esi, 0xffffffff
je 0x411c89
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x448]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x43c]
call fcn.004096c1
mov dword [ebp - 0x44c], eax
mov ecx, esi
lea edx, [ebp - 0x440]
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00409711
push 0x436024
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404e6b
mov edi, eax
mov eax, dword [ebp - 0x44c]
call fcn.00404a7f
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
call fcn.0040167f
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.0040167f
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
pop ecx
jne 0x411bde
mov ebx, dword [ebp - 0x444]
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
call fcn.00421dbe
ret
Function at 0x4126e6
Capabilities:
Get file version info
Read file on windows

Disassembly:
push 0x184
mov eax, 0x422bd3
call fcn.00421d3b
xor edi, edi
mov ebx, edx
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x54], edi
je 0x4128b1
cmp word [ebx], di
je 0x4128b1
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
je 0x4128b1
mov eax, dword [0x435bb0]
mov esi, 0x435bb0
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], edi
mov eax, dword [0x435bb0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
push edi
push ebx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x4127d1
push esi
call fcn.00421302
pop ecx
push eax
push esi
push edi
push ebx
mov dword [ebp - 0x68], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4127c8
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x42a384
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4127c8
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x58]
push str._d._d._d._d
push eax
call fcn.00405c2a
add esp, 0x18
push dword [ebp - 0x68]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov ebx, dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call esi
test eax, eax
je 0x41287e
cmp dword [ebp - 0x5c], 0x40
jne 0x41287e
push edi
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x5c]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x190]
push eax
push ebx
call esi
test eax, eax
je 0x41287e
cmp dword [ebp - 0x5c], edi
jne 0x41287e
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR80.dll__gmtime32]
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x84]
push dword [ebp - 0x90]
inc eax
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x80]
add eax, 0x76c
push eax
lea eax, [ebp - 0x60]
push str.__04d__02d__02d__02d:_02d:_02d_GMT
push eax
call fcn.00405c2a
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.00404bb5
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x64]
jmp 0x4128be
push esi
mov ecx, 0x42a598
call fcn.00404a23
mov eax, esi
call fcn.00421dbe
ret
Function at 0x4128c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040167f
cmp edi, esi
jne 0x4129c8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push str.FullDump
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], 4
call edi
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x74], 4
jne 0x4129b1
cmp dword [ebp - 0x6c], ebx
jne 0x4129b1
push 0x62
lea eax, [ebp - 0x66]
push esi
push eax
mov word [ebp - 0x68], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.HASH
push dword [ebp - 0x70]
mov dword [ebp - 0x84], 0x64
mov dword [ebp - 0x80], ebx
call edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
mov word [ebp - 6], si
call fcn.004050dd
test eax, eax
jne 0x4129b1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4129cd
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 4
jne 0x4129c8
cmp dword [ebp - 0x6c], 2
mov eax, ebx
je 0x4129cd
mov eax, dword [0x436018]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421314
leave
ret

Function at 0x412be4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0041458c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040167f
test bl, bl
pop ebx
je 0x412c71
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.bUseInterMod
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 4
jne 0x412c71
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x412c71
mov dword [0x436018], eax
leave
ret
Function at 0x412c73
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x412ce3
push str.C:_temp_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x412d0e
mov word [ebp + eax*2 - 0x20c], 0x5c
mov word [ebp + eax*2 - 0x20a], bx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Tencent_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00404a23
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421314
leave
ret

Function at 0x412d64
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.00421e90
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1028], 0
push ebx
mov dword [ebp - 0x1020], eax
push esi
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, ecx
lea esi, [ebp - 0x108c]
mov dword [ebp - 0x1024], ebx
stosb byte es:[edi], al
call fcn.0041f86c
push 0x42d63c
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x412e00
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov edi, 0x1000
jmp 0x412de2
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x108c]
call fcn.0041ffb6
push ebx
push edi
lea eax, [ebp - 0x101c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x412dd1
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x412e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1024]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x429460
call fcn.00417869
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x108c]
call fcn.004201c1
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1020]
call fcn.00412e55
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1020]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421314
leave
ret
Function at 0x4138b3
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x413919
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x4138f3
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41390c
push 0x103
push dword [ebp - 4]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
and word [esi + 0x206], 0
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x413ae6
push str.CreateTxtFile_failed__empty_file_path_
push 0x429460
call fcn.00417869
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.Create_txt_file___s__failed___ld_
push 0x429460
call fcn.00417869
add esp, 0x10
jmp 0x413adf
push edi
lea eax, [ebp - 4]
push eax
push 3
push 0x42e024
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call edi
test eax, eax
jne 0x413b5d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str._1_Write_prefix_to_txt_file___s__failed___ld_
jmp 0x413b1b
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.004173a0
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push ebx
call edi
test eax, eax
push ebx
jne 0x413bb8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str._2_Write_content_to_txt_file___s__failed___ld_
push 0x429460
call fcn.00417869
add esp, 0x10
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, esi
jmp 0x413ae1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x413ba6