joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x404a7a
xor eax, eax
cmp ecx, ebp
je 0x404a62
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x404a88
cmp ecx, ebp
je 0x404b1b
push ecx
jmp 0x404b15
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x404aea
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404a00
mov ebx, eax
cmp ebx, ebp
jne 0x404b38
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404ab0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404afd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404bb0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404b1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040cd4c
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404b47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404b1d
Function at 0x405630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x40e6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41401c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x4056af
call fcn.00403e10
mov esi, eax
jmp 0x405791
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4056cb
call fcn.00403e10
jmp 0x405788
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4056e4
call fcn.00403e10
jmp 0x405788
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x405718
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405706
lea eax, [ebp]
call fcn.00404570
lea esi, [ebp - 0x1c]
call fcn.00404540
mov eax, 0x8007000e
jmp 0x4057a3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403dd0
mov dword [ebp - 4], 1
jmp 0x405741
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40574f
mov esi, 0x8007000e
jmp 0x40578a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40576d
call fcn.00403e10
jmp 0x405788
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004054e0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4057a1
lea eax, [ebp]
call fcn.00404570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040cd4c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406050
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40e083
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x240], 4
cmp dword [esp + 0x2b0], 0
jne 0x4060d8
lea esi, [esp + 0x10]
call fcn.00405fe0
push eax
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x244], 5
call dword [0x40f174]
mov ecx, esi
mov byte [esp + 0x240], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call sub.MSVCR90.dll_memset
mov esi, dword [esp + 0x2ac]
mov eax, 8
add esp, 0xc
cmp dword [esp + 0x2b4], eax
jae 0x40610e
lea esi, [esp + 0x2a0]
mov edx, dword [esp + 0x284]
cmp dword [esp + 0x298], eax
jae 0x406125
lea edx, [esp + 0x284]
mov ecx, dword [esp + 0x268]
cmp dword [esp + 0x27c], eax
jae 0x40613c
lea ecx, [esp + 0x268]
cmp dword [esp + 0x260], eax
mov eax, dword [esp + 0x24c]
jae 0x406153
lea eax, [esp + 0x24c]
push esi
push 0x104
lea esi, [esp + 0x34]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, esi
push edx
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x248]
mov dword [esp + 8], 1
mov byte [esp + 0x240], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x264]
mov byte [esp + 0x240], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x280]
mov byte [esp + 0x240], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x29c]
mov byte [esp + 0x240], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040cd4c
add esp, 0x23c
ret
Function at 0x406420
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40de0b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405bb0
push 0x40f84c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x58], 0
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edx
call esi
add esp, 0x10
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call dword [0x40f174]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str..exe
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 2
call dword [0x40f174]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x4064e0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40650a
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x4064f9
lea eax, [esp + 0x28]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040cd4c
add esp, 0x48
ret
Function at 0x4079c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x4079d5
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4
Function at 0x40a340
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e50a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push 0x410320
xor ebp, ebp
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x40a3ad
mov ecx, dword [0x414f60]
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
cmp ecx, ebp
je 0x40a399
inc dword [ecx + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebp
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x40a403
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov edx, dword [0x414f60]
mov eax, dword [esp + 0x34]
mov ecx, edx
add esp, 4
mov dword [eax], edx
cmp ecx, ebp
je 0x40a510
inc dword [ecx + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push ebp
push ebp
push ebx
call esi
lea eax, [edi + 4]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push ebx
push edi
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
push ebx
mov edi, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov edi, dword [sym.imp.MSVCR90.dll_free]
test al, al
je 0x40a48e
mov al, byte [esi]
cmp al, 0xef
jne 0x40a469
cmp byte [esi + 1], 0xff
jne 0x40a469
mov ebp, 2
cmp al, 0xff
jne 0x40a478
cmp byte [esi + 1], 0xfe
jne 0x40a478
mov ebp, 2
lea ebx, [esi + ebp]
call fcn.00408ae0
push esi
mov ebx, eax
call edi
add esp, 4
mov esi, ebx
xor ebp, ebp
jmp 0x40a4a4
cmp byte [esi], 0xef
jne 0x40a4a4
cmp byte [esi + 1], 0xbb
jne 0x40a4a4
cmp byte [esi + 2], 0xbf
jne 0x40a4a4
mov ebp, 3
test esi, esi
jne 0x40a4cf
mov ecx, dword [0x414f60]
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
test ecx, ecx
je 0x40a510
inc dword [ecx + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea edx, [esi + ebp]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040a140
push esi
call edi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x40a4f4
inc dword [eax + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
push ecx
mov dword [esp + 0x20], 1
call fcn.0040a5b0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40b460
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b4cc
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x40b5f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x24]
mov ebx, 1
mov dword [edi + 0xc], ebx
test eax, eax
je 0x40b60b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b64a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b63d
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov dword [esi + 4], 0
mov edi, dword [edi + 0x24]
test edi, edi
je 0x40b654
push edi
call ebx
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.0040c5a0
Function at 0x40bf80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x40e41b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
je 0x40bfba
lea eax, [ebx + 1]
jmp 0x40c08f
cmp dword [ebp + 0x54], ebx
mov dword [esp + 0x2c], ebx
jle 0x40c084
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
cmp edi, ebx
je 0x40bffc
lea eax, [edi + 4]
push eax
mov dword [edi], ebx
call fcn.0040c4f0
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x24], eax
jmp 0x40bffe
xor edi, edi
push ebx
lea esi, [edi + 4]
push ebx
push esi
push 0x40c660
mov dword [esp + 0x34], 0xffffffff
push ebx
push ebx
mov dword [esp + 0x30], edi
mov dword [esi + 0xc], 0x40bbd0
mov dword [esi + 0x10], edi
mov dword [esi + 8], ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40c04a
cmp edi, ebx
je 0x40c072
mov eax, edi
call fcn.0040b5f0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40c072
mov esi, dword [ebp + 0x6c]
mov edx, dword [esi + 4]
lea ebx, [ebp + 0x58]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.0040c410
mov ecx, ebx
mov edi, eax
call fcn.0040c450
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebp + 0x54]
mov dword [esp + 0x2c], eax
jl 0x40bfc7
xor eax, eax
cmp dword [ebp + 0x70], ebx
setne al
mov dword [ebp + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x40c0b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x40c0d0
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x40c0de
cmp edi, eax
je 0x40c0e4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0xc], esi
je 0x40c214
test edi, edi
jne 0x40c209
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40c10d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x40c129
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40c16a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c159
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x40c17f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40c1bd
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c1ac
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40c1cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040c5a0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x40c210
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x40c1fa
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x40c0d0
mov eax, dword [edi]
jmp 0x40c0fe
mov eax, dword [eax]
jmp 0x40c1eb
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x40c24f
jmp 0x40c230
mov esi, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x40c230
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c5a0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x40dfbb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40c611
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c600
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40c622
push esi
call fcn.0040c720
call fcn.0040c870
mov eax, dword [esi + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x414084
je 0x40c64d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c64d
mov eax, dword [esi + 0x18]
sub eax, 0xc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x40cd4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41401c]
jne 0x40cd56
repz ret
jmp fcn.0040d2de

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402060
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x56d154]
mov eax, 1
cmp ecx, eax
je 0x4020b0
lea ecx, [esp]
mov dword [0x56d154], eax
push ecx
push 0
push eax
push 0x4020c0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4020a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ecx
ret
mov dword [0x56d154], 0
xor eax, eax
pop ecx
ret
Function at 0x402d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 4], 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 4]
push eax
push ecx
push str.DownProgName
push str.Software360360se3
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
pop ecx
ret

Function at 0x402db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.DownProgID
push str.Software360360se3
push SysReAllocStringLen
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x402e26
lea eax, [esp + 8]
push str.TwInternalDownload
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x402e26
mov eax, 1
add esp, 0x210
ret
xor eax, eax
cmp word [esp + 8], ax
sete al
add esp, 0x210
ret

Function at 0x402e40
Capabilities:
Set registry value

Disassembly:
push str.TwInternalDownload
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
push str.TwInternalDownload
push 1
push str.DownProgID
push str.Software360360se3
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
ret