joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002284f
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx + 0x1c]
push edi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
je 0x100228b7
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x1002289d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100228b7
mov ecx, dword [ebp - 0x1c]
add eax, 1
mov ebx, eax
adc ecx, edi
push ebx
mov dword [ebp - 4], ecx
call sub.MFC42u.DLL_operatornew
mov esi, eax
pop ecx
cmp esi, edi
jne 0x100228be
xor eax, eax
jmp 0x10022980
push ebx
push edi
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push edi
push eax
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
mov dword [ebp - 0x10], eax
call fcn.10021489
push esi
mov ebx, eax
call sub.MFC42u.DLL_operatordelete
add esp, 0x10
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
mov dword [ebp - 0xc], edi
je 0x10022971
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
mov dword [ebp - 4], eax
call sub.MFC42u.DLL_operatornew
mov esi, eax
pop ecx
cmp esi, edi
je 0x10022965
push dword [ebp - 4]
push edi
push esi
call sub.MSVCRT.dll_memset
lea eax, [ebp - 4]
sub dword [ebp - 4], 2
push eax
push esi
push str.37k_IF__y_d
push dword [ebp - 0x10]
push ebx
call fcn.1000ff08
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x24
xor ebx, ebx
cmp dword [ebp - 0xc], edi
je 0x1002295e
mov ecx, dword [ebp - 0x18]
push esi
call fcn.10022985
mov dword [ebp - 0xc], eax
push esi
call sub.MFC42u.DLL_operatordelete
pop ecx
cmp ebx, edi
je 0x10022971
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10022ded
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2170
call fcn.100467d0
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10022e25
xor eax, eax
jmp 0x10022efc
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x70]
push eax
call fcn.1000ec16
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push ebx
push eax
mov edi, 0x2000
lea eax, [ebp - 0x2170]
push edi
push eax
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x10022e8f
push dword [ebp + 8]
lea eax, [ebp - 0x2170]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000ec51
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push ebx
push eax
lea eax, [ebp - 0x2170]
push edi
push eax
push dword [ebp - 4]
jmp 0x10022e5d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000f7a5
pop ecx
xor eax, eax
pop ecx
lea edi, [ebp - 0x16e]
push 0x3f
mov word [ebp - 0x170], bx
pop ecx
lea esi, [ebp - 0x170]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, byte [ebp + ebx - 0x14]
push eax
push 0x1005daf0
push 3
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jb 0x10022ec3
push dword [ebp + 0xc]
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
neg eax
pop ecx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
leave
ret 8
Function at 0x10022f30
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004a1b3
call fcn.100464e0
sub esp, 0x2a8
and word [ebp - 0x2b4], 0
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x82
push dword [esi + 0x28]
xor eax, eax
lea edi, [ebp - 0x2b2]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x2b4]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ebx, esp
mov dword [ebp - 0x10], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x2b4]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x2b4]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
call fcn.10001682
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0xa8]
mov dword [esi + 0x18], eax
call fcn.10009cc2
push dword [esi + 0x28]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esi + 0x20]
push ebx
call edi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ebx, dword [esi + 0x28]
push ebx
call edi
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10023054
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
push eax
push edx
push dword [esi + 0x48]
call fcn.10009e95
test eax, eax
je 0x10023054
call fcn.10015de5
test eax, eax
je 0x10023039
mov ecx, dword [esi + 0x48]
mov dword [eax + 0x10], ecx
mov edi, 0x10061018
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x48]
push edi
mov dword [0x10060fe0], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10009d81
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100232ac
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1004a1fd
call fcn.100464e0
sub esp, 0x18
push ebx
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10015a13
pop ecx
push dword [ebp - 0x14]
push 0x8c
call fcn.1001544d
push eax
call fcn.10028e45
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023352
push esi
push edi
call fcn.1000a13a
mov esi, dword [ebp - 0x14]
mov edi, eax
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push edi
lea eax, [ebp - 0x24]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.1003212c
mov ecx, eax
call fcn.10032256
push 1
lea ecx, [ebp - 0x24]
mov esi, eax
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp esi, 1
pop edi
sete bl
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1002394f
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push 2
mov esi, ecx
pop ebx
xor edi, edi
push dword [esi + 0x28]
mov dword [esi + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x100239a3
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
push eax
push edx
push dword [esi + 0x48]
call fcn.10009e95
mov edi, eax
call fcn.10015de5
test eax, eax
je 0x1002398a
mov dword [eax + 0x10], ebx
mov esi, 0x10061018
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x10060fe0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10028e45
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.RT_RCDATA
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x10028eb4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x10028eb4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x10028eb4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x10028eb4
push edi
push 0x80
push 2
push edi
push 1
push 0x10000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10028eb8
xor eax, eax
jmp 0x10028ed8
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10028ecf
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100291f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x1002921f
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x1002925c
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi + 4], edi
pop edi
pop esi
setne al
leave
ret
Function at 0x1002b6d5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004b33c
call fcn.100464e0
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x14], esi
jne 0x1002b702
push ebx
push ebx
push ebx
push 2
call fcn.1002d41d
xor al, al
jmp 0x1002b860
mov ecx, esi
call fcn.1002a9a9
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
call edi
add esp, 0x1c
cmp esi, ebx
jg 0x1002b742
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push 0xd
jmp 0x1002b6f6
mov dword [ebp - 0x10], 0x10060f28
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1002a40a
lea eax, [esi + 1]
push eax
call sub.MFC42u.DLL_operatornew
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x18], edi
push 1
push esi
push edi
mov byte [edi], bl
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x1002b7ad
push edi
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push 2
call fcn.1002d41d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x10060f28
je 0x1002b6fb
push dword [ebp - 0x10]
call sub.MFC42u.DLL_operatordelete
pop ecx
jmp 0x1002b6fb
mov ecx, dword [ebp - 0x18]
mov eax, edi
mov byte [ecx + esi], bl
cmp byte [ecx], bl
je 0x1002b813
mov cl, byte [edi]
cmp cl, 0xa
jne 0x1002b7d2
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002a513
inc edi
jmp 0x1002b806
cmp cl, 0xd
jne 0x1002b80e
mov ecx, edi
sub ecx, eax
cmp ecx, ebx
jle 0x1002b7e9
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002a513
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.1002a513
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x1002b80a
inc edi
inc edi
mov eax, edi
jmp 0x1002b80f
mov edi, eax
jmp 0x1002b806
inc edi
cmp byte [edi], bl
jne 0x1002b7b9
sub edi, eax
je 0x1002b821
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.1002a513
push dword [ebp - 0x18]
call sub.MFC42u.DLL_operatordelete
mov esi, dword [ebp - 0x14]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
add ecx, 8
push ebx
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], bl
jne 0x1002b78e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x10060f28
je 0x1002b85e
push dword [ebp - 0x10]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1002ef12
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x10060f70
jmp 0x1002ef02
mov eax, 0x1004b674
call fcn.100464e0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x4c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
push edi
mov dword [ebp - 0x14], esi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ebx, 0x10060c2c
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x5c]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
lea ecx, [esi + 0x5c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x7c]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
push edi
mov byte [ebp - 4], 1
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
lea ecx, [esi + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x8c]
push edi
mov byte [ebp - 4], 2
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esi + 0x9c], edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1002fbc7
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.RT_RCDATA
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x1002fc36
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x1002fc36
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x1002fc36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x1002fc36
push edi
push 0x80
push 2
push edi
push 1
push 0x10000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002fc3a
xor eax, eax
jmp 0x1002fc5a
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002fc51
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100303f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push 0x1000
push 0x22d
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10030435
mov eax, dword [esp + 8]
and dword [esi], 0
mov dword [esi + 0x20c], eax
push 0x208
lea eax, [esi + 4]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x10030437
xor esi, esi
mov ecx, esi
call fcn.10030446
neg al
sbb eax, eax
and eax, esi
pop esi
ret
Function at 0x1003096d
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
mov esi, 0x82
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push str.Kernel32.dll
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetModuleHandleExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100309be
lea ecx, [ebp - 4]
push ecx
push fcn.1003096d
push 6
call eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x41a]
mov word [ebp - 0x41c], bx
mov word [ebp - 0x628], bx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x626]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1003066c
add esp, 0x10
push 0xffffffffffffffff
push ebx
push 0x804
push 1
pop esi
push esi
push esi
push 0xcaa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
push str.QQPCMgr
call fcn.1002fdd7
push 0x10060aec
push 0x2710
call fcn.1003053b
add esp, 0x38
call fcn.1003038c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10030c94
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
xor ecx, ecx
cmp dword [esp + 8], eax
jle 0x10030cc0
push esi
mov edx, dword [esp + 8]
movzx esi, al
movzx edx, byte [ecx + edx]
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x1005e438]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x10030c9f
pop esi
not eax
ret

Function at 0x10030f1a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10031f88
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x10031fc2
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x10031fbf
push 0x10
xor eax, eax
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 0x10]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add dword [ebp + 8], edx
dec ecx
jne 0x10031fd6
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10032131
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004b841
call fcn.100464e0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004e11c
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea eax, [esi + 0x30]
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call edi
lea eax, [esi + 0x48]
push eax
call edi
lea eax, [esi + 0x60]
push eax
call edi
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 3
call fcn.1003340d
lea eax, [esi + 0x90]
mov dword [esi + 0x80], 1
push eax
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
call edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi], 0x1004e118
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret