joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407dc8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407dfc
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407df8
cmp esi, eax
jae 0x407dfc
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407de8
cmp esi, eax
jb 0x407e02
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408000
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427d18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
cmp edi, ebx
jne 0x4080a2
add esi, 0xfffffff0
mov eax, esi
call fcn.00406e20
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40808c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4080ca
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.00401680
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
jne 0x4080db
xor eax, eax
jmp 0x4080f1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4080e0
sub eax, edx
sar eax, 1
js 0x40813a
cmp eax, dword [esi - 8]
jg 0x40813a
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
add esi, 0xfffffff0
mov eax, esi
call fcn.00406e20
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40808c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40808c
push 0x80070057
call fcn.004018a0
int3

Function at 0x408710
Capabilities:
Create http request

Disassembly:
mov eax, 1
test byte [0x436760], al
jne 0x408748
or dword [0x436760], eax
push 0
push 0
push 0
push 0
push str.QQ_Bug_Report_Tool
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0x428690
mov dword [0x436764], eax
call fcn.0042585b
add esp, 4
mov eax, 0x436764
ret
Function at 0x408790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0xc
xor ebx, ebx
push ebx
mov dword [esi], 0x429724
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov byte [edi], 0xb9
mov byte [edi + 5], 0xe9
mov dword [edi + 1], esi
mov ecx, 0x401040
sub ecx, edi
sub ecx, 0xa
mov dword [edi + 6], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 8], edi
mov dword [esi], 0x42e9f4
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
add eax, 0x10
pop edi
mov dword [esi + 0x24], eax
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428360
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test byte [0x436680], 1
jne 0x40b1b5
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov ecx, dword [0x436684]
mov eax, dword [ecx + 0x1c]
push eax
push 0x42d858
lea edi, [ebp + 8]
call fcn.00407860
mov esi, dword [ebp + 8]
push 0x37
push esi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x40b2b6
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40b2b6
mov ecx, dword [esi - 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x40b2b6
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x42e550
call fcn.00405e20
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x42e550
mov byte [ebp - 4], 1
call fcn.00405e20
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x42e550
mov byte [ebp - 4], 2
call fcn.00405e20
push 1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 3
call fcn.00408710
push eax
call fcn.0040f0a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b270
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e820
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [esi + 0x2c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0xffffffff
jne 0x40e85f
push str.GIF_not_initialized
push 0x42d6f8
call fcn.00419910
add esp, 8
xor al, al
pop ecx
pop ebp
ret 0xc
cmp dword [esi + 0x24], 1
jbe 0x40e8b2
cmp dword [esi + 0x14], 0
jne 0x40e8b2
lea ecx, [ebp + 8]
push ecx
push 4
push esi
push 0x40eba0
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
jne 0x40e8ab
push str.Couldnt_start_a_GIF_animation_thread_n
push 0x42d6f8
call fcn.00419910
add esp, 8
mov al, 1
pop ecx
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ecx
pop ebp
ret 0xc

Function at 0x40e920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test byte [0x436770], 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov byte [ebp - 1], 0
jne 0x40e94b
or dword [0x436770], 1
push 0
call esi
mov dword [0x43676c], eax
mov eax, dword [0x43676c]
push 0x429710
push 0x86
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e977
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
test byte [0x436770], 1
jne 0x40e990
or dword [0x436770], 1
push 0
call esi
mov dword [0x43676c], eax
mov ecx, dword [0x43676c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x40e96d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40ea0e
cmp dword [ebp + 8], 0
push edi
jne 0x40e9e4
call fcn.00414c70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0xc]
push esi
mov dword [edx], eax
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
call fcn.00414c70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40ea0b
mov ecx, dword [ebp + 8]
push esi
push ebx
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f7b0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.0040eec0
test eax, eax
jne 0x40f845
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov eax, dword [edx]
push 0
push 0
push 3
push 0
push 0
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [edi], eax
jne 0x40f875
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x40f818
mov edx, dword [ebp - 0x14]
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.HTTP_1.1
push edx
push str.POST
push eax
mov dword [ebp - 0x1c], str.text_
mov dword [ebp - 0x18], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x40f8c9
mov edx, dword [edi]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x40f818
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8ec
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 esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427271
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
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
push 0x422
lea eax, [ebp - 0x436]
push 0
push eax
mov word [ebp - 0x438], 0
call fcn.00425b9e
add esp, 0xc
push 0x212
lea ecx, [ebp - 0x438]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x438]
push 0x5c
push edx
mov esi, str.bugreport.ini
call dword [sym.imp.MSVCR80.dll_wcsrchr]
lea ecx, [eax + 2]
add esp, 8
sub ecx, esi
lea ecx, [ecx]
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, 2
test ax, ax
jne 0x4125c0
push 0x8000
call fcn.0042574c
add esp, 4
mov esi, eax
lea eax, [ebp - 0x438]
push eax
push 0x4000
push esi
push str.STRINGTABLE
mov dword [ebp - 0x444], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x41275a
cmp word [esi], 0
je 0x41275a
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, esi
call fcn.00405e20
lea ebx, [ebp - 0x43c]
mov dword [ebp - 4], 0
call fcn.0040ba40
mov ebx, eax
call fcn.0040bad0
mov ecx, dword [ebp - 0x43c]
cmp dword [ecx - 0xc], 0
jl 0x41270e
push 0x42f0c4
push ecx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x412708
mov ecx, dword [ebp - 0x43c]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x41270e
mov eax, dword [ecx - 0xc]
sub eax, edi
lea edx, [ebp - 0x43c]
sub eax, 1
push edx
lea ecx, [ebp - 0x440]
call fcn.00415be0
mov ebx, eax
mov eax, edi
lea ecx, [ebp - 0x448]
lea edx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00415c60
push eax
mov ecx, 0x436700
mov byte [ebp - 4], 2
call fcn.004063f0
mov edi, eax
mov eax, ebx
call fcn.00406830
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4126e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412708
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x43c]
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412736
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x41260e
mov esi, dword [ebp - 0x444]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
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 0x4131d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
test esi, esi
je 0x41324c
test ebx, ebx
je 0x41324c
push edi
push str.MiniDumpWriteDump
push str.dbghelp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x413223
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413229
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push 0
push 0
push ebx
push eax
push esi
push ecx
push edx
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x413260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x6c]
mov edi, ecx
push eax
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x70]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4132be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x413387
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x74]
push eax
push edi
push str.FullDump
push ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 4
call esi
cmp dword [ebp - 0x74], 4
jne 0x41336c
cmp dword [ebp - 0x6c], 1
jne 0x41336c
push 0x62
lea edx, [ebp - 0x66]
push edi
push edx
mov word [ebp - 0x68], di
call fcn.00425b9e
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x7c]
push edx
push edi
push str.HASH
push eax
mov dword [ebp - 0x80], 0x64
mov dword [ebp - 0x7c], 1
call esi
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x68]
mov word [ebp - 6], di
call fcn.00406270
add esp, 4
test al, al
je 0x41336c
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 4
jne 0x413387
cmp dword [ebp - 0x6c], 2
mov eax, 1
je 0x41338c
mov eax, dword [0x4366ec]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042575e
mov esp, ebp
pop ebp
ret
Function at 0x4136b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, ecx
call fcn.00415b60
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 0xc]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x413750
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push edi
push str.bUseInterMod
push ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 4
jne 0x413750
mov eax, 1
cmp dword [ebp - 0xc], eax
jne 0x413750
mov dword [0x4366ec], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413760
Capabilities:
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 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], 0
call fcn.00425b9e
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4137cc
push str.C:_temp_
lea edx, [ebp - 0x20c]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4137d5
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x413801
mov word [ebp + eax*2 - 0x20c], 0x5c
mov word [ebp + eax*2 - 0x20a], cx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Tencent_
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push 0
lea edx, [ebp - 0x20c]
push edx
call esi
push edi
lea ecx, [ebp - 0x20c]
call fcn.00405e20
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0042575e
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.004261b0
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x5c
mov edi, ecx
mov dword [ebp - 0x1020], eax
xor eax, eax
lea ecx, [ebp - 0x1084]
push ebx
push ecx
mov dword [ebp - 0x1024], ebx
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
call fcn.00425b9e
push 0x42f258
push edi
mov dword [ebp - 0x1084], 0x67452301
mov dword [ebp - 0x1080], 0xefcdab89
mov dword [ebp - 0x107c], 0x98badcfe
mov dword [ebp - 0x1078], 0x10325476
mov dword [ebp - 0x1074], ebx
mov dword [ebp - 0x1070], ebx
mov dword [ebp - 0x102c], ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x413957
mov edi, dword [sym.imp.MSVCR80.dll_fread]
push esi
push 0x1000
lea edx, [ebp - 0x101c]
push 1
push edx
call edi
add esp, 0x10
cmp eax, ebx
je 0x41394b
mov edi, edi
push eax
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x101c]
call fcn.00424310
push esi
push 0x1000
lea ecx, [ebp - 0x101c]
push 1
push ecx
call edi
add esp, 0x18
cmp eax, ebx
jne 0x413920
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
jmp 0x413971
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x42a75c
call fcn.00419910
add esp, 0x10
lea edx, [ebp - 0x18]
push edx
lea esi, [ebp - 0x1084]
call fcn.004245e0
mov esi, dword [ebp - 0x1020]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004139b0
mov ecx, dword [ebp - 8]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042575e
mov esp, ebp
pop ebp
ret