joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156bf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
and dword [esi + 8], 0
and dword [esi + 4], 0
and dword [esi + 0x10], 0
mov dword [esi + 0xc], eax
mov dword [esi], ecx
test eax, eax
je 0x415733
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415733
push edi
push 0x40
pop edi
push edi
call fcn.0042129f
push edi
push 0xcc
push eax
mov dword [esi + 8], eax
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 8
push dword [esi]
call edi
push 0x415645
push 0xfffffffffffffffc
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x41573a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x41575d
mov eax, 0x80004005
jmp 0x415868
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x415793
mov edi, dword [eax]
push 0
push 0x2710
push 0x64
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push ebx
push dword [ebp - 8]
call dword [edi + 0xc]
xor edi, edi
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
cmp dword [esi + 4], edi
je 0x4157fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4157fb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 8], eax
jne 0x4157fb
push dword [esi + 4]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call fcn.004156bf
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call fcn.0041559a
jmp 0x415815
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x64]
cmp ecx, 0x26ac
ja 0x41585d
mov esi, dword [esi + 4]
push 8
xor eax, eax
pop ecx
mov dword [ebp - 0x2c], 0x24
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffff9c
movzx eax, ax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 1
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
jmp 0x415868
push dword [ebp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415fc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR100.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
add esp, 0xc
and dword [esi + 0x58], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x417e5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x120]
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 - 0x110], 3
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], ebx
call esi
test eax, eax
jne 0x418030
push dword [ebp - 0x124]
lea eax, [ebp - 0x108]
push str._sConnection
push 0x103
push eax
call fcn.00417e3b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push edi
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x120]
call esi
test eax, eax
jne 0x418024
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x418018
push 0x104
xor edi, edi
lea eax, [ebp - 0x108]
push ebx
inc edi
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], 0x103
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x418018
cmp dword [ebp - 0x114], edi
jne 0x418002
mov esi, 0x42b8b8
push esi
call sub.MSVCR100.dll_strlen
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x417fd5
mov dword [ebp - 0x110], ebx
jmp 0x418018
cmp dword [ebp - 0x114], 1
jne 0x418002
push esi
call sub.MSVCR100.dll_strlen
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
je 0x418002
mov dword [ebp - 0x110], 2
jmp 0x418018
xor eax, eax
cmp dword [ebp - 0x114], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret
Function at 0x418045
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00421610
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.MSVCR100.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call esi
pop ecx
test eax, eax
jle 0x4180c8
push 0x5c
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x20e]
je 0x4180c8
mov word [ebp + eax - 0x20c], cx
xor ecx, ecx
mov word [ebp + eax - 0x20a], cx
lea eax, [ebp - 0x20c]
push eax
call esi
sub ebx, eax
push ebx
lea eax, [ebp - 0x20c]
push str.iphlpapi.dll
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa0], eax
test eax, eax
jne 0x418107
xor al, al
jmp 0x418237
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4181f1
lea ecx, [ebp - 0x2aa4]
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x4181f1
mov dword [ebp - 0x2a98], edi
lea eax, [ebp - 0x2a94]
sub dword [ebp - 0x2a98], eax
lea esi, [ebp - 0x2a8c]
mov dword [ebp - 0x2a9c], 3
lea eax, [esi + 8]
push eax
call fcn.00417e5b
push 6
mov ebx, eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x2a98]
lea eax, [ebp + ecx - 0x2a94]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x41819b
inc ecx
cmp ecx, 6
jb 0x41817f
jmp 0x4181ac
cmp dword [esi + 0x1a0], 6
jne 0x4181e7
cmp dword [ebp - 0x2a9c], ebx
jle 0x4181e7
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ebx
mov esi, dword [esi]
test esi, esi
jne 0x41815f
push dword [ebp - 0x2aa0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x2a94]
add esp, 0xc
xor ecx, ecx
sub edi, eax
lea eax, [ebp + ecx - 0x2a94]
mov dl, byte [edi + eax]
cmp dl, byte [eax]
jne 0x418246
inc ecx
cmp ecx, 6
jb 0x41821a
mov al, 1
xor ecx, ecx
test al, al
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret
xor al, al
jmp 0x418230
Function at 0x4192c4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x42403d
call fcn.0042147b
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x238], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x23c], esi
mov word [esi], ax
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push ebx
inc edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
cmp byte [ebp + 0xc], bl
push edi
sete al
dec 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 0x4193af
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.004020cc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00401f44
push ebx
push edi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00401a40
mov edi, str.TencentDeskUpdate
cmp byte [ebp + 0xc], bl
jne 0x419376
mov edi, str.TencentDesktop
push edi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004020fe
push esi
call fcn.00418cc8
pop ecx
test al, al
jne 0x419399
push esi
call fcn.00418e1e
pop ecx
mov edi, str.Global.db
push edi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004020fe
mov eax, esi
call fcn.004214fe
ret
Function at 0x41946e
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x4240af
call fcn.0042147b
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
push ebx
push eax
mov byte [ebp - 0x49], bl
call fcn.004192c4
pop ecx
pop ecx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], ebx
jae 0x4194a0
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
mov edi, SysReAllocString
push edi
push eax
call esi
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x41954e
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.004192c4
lea eax, [ebp - 0x48]
push eax
call fcn.00418798
add esp, 0xc
test al, al
jne 0x419523
lea eax, [ebp - 0x2c]
push eax
call fcn.00418798
pop ecx
test al, al
je 0x419523
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x4194f7
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x419503
lea eax, [ebp - 0x2c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x419523
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41951c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41952f
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 3
push ebx
push 1
push edi
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
call fcn.00401a40
cmp dword [ebp - 0x50], 0xffffffff
je 0x41958a
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x419581
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x10
push dword [ebp - 0x58]
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419581
cmp dword [ebp - 0x54], 0x10
jne 0x419581
mov byte [ebp - 0x49], 1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401a40
mov al, byte [ebp - 0x49]
call fcn.004214fe
ret 4
Function at 0x4195a0
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x4240dc
call fcn.0042147b
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2c]
push ebx
push eax
mov byte [ebp - 0x49], bl
call fcn.004192c4
pop ecx
pop ecx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
jae 0x4195d2
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
push eax
call esi
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x419628
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.004192c4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
jae 0x419609
lea eax, [ebp - 0x48]
push ebx
push ebx
push 2
push ebx
push 1
push edi
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.00401a40
cmp dword [ebp - 0x50], 0xffffffff
je 0x419652
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x10
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419649
cmp dword [ebp - 0x58], 0x10
jne 0x419649
mov byte [ebp - 0x49], 1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401a40
mov al, byte [ebp - 0x49]
call fcn.004214fe
ret 4
Function at 0x41c4ab
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x42444b
call fcn.00421412
mov dword [ebp - 0x20], ecx
push 0x436718
lea ecx, [ebp - 0x10]
call fcn.004040ca
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
jne 0x41c507
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
xor al, al
call fcn.004214ea
ret 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x41c51e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c4f2
lea eax, [edi + 1]
push eax
call fcn.0042129f
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x41c549
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
mov al, bl
jmp 0x41c4ff
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
push ebx
push ebx
mov byte [eax + esi], bl
push dword [ebp - 0x14]
mov edi, 0xfde9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push edi
call esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.004013e0
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push edi
call esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00402904
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
je 0x41c60d
push 0x42bbd4
push str.lt_
lea ecx, [ebp - 0x10]
call fcn.0041bba2
push 0x42bbd8
push str.gt_
lea ecx, [ebp - 0x10]
call fcn.0041bba2
push 0x427cd8
push 0x42bb68
lea ecx, [ebp - 0x10]
call fcn.0041bba2
push 0x42bdc4
push 0x42bb80
lea ecx, [ebp - 0x10]
call fcn.0041bba2
push 0x428638
push 0x42bb90
lea ecx, [ebp - 0x10]
call fcn.0041bba2
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.0041c3c7
mov bl, al
jmp 0x41c53a
Function at 0x41d3e1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x41d470
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41d42e
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41d451
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41d52b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x41d498
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x41d4a3
xor eax, eax
jmp 0x41d4ef
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x41d4c0
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0041c61f
jmp 0x41d4d0
cmp ecx, 2
jne 0x41d4d9
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00420d12
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x41d517
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41d52b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x41d3ec
pop edi
pop ebx
leave
ret
Function at 0x41fa38
Capabilities:
Print debug messages

Disassembly:
push 0x218
mov eax, 0x4244b0
call fcn.0042147b
mov eax, dword [ebp + 8]
mov edi, ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401652
xor ebx, ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call fcn.00404aef
push 0x5c
push dword [ebp - 0x21c]
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
jne 0x41fa81
or eax, 0xffffffff
jmp 0x41fa89
sub eax, dword [ebp - 0x21c]
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402a19
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00401d11
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401171
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401652
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00404aef
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push dword [ebp - 0x220]
call esi
push ebx
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
call fcn.00402957
cmp eax, 0xffffffff
jne 0x41fb43
mov dword [edi + 0x14], 1
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401171
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401171
call fcn.004214fe
ret 4
Function at 0x4209e5
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4241c9
call fcn.00421412
mov esi, ecx
push str.__________CReportFileter::Init__________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.BugReportRule.dat
lea ecx, [ebp - 0x10]
call fcn.00401652
push dword [ebp - 0x10]
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004207a1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
call fcn.004214ea
ret
Function at 0x4211af
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x436bc0], 0
push esi
push edi
jne 0x421125
call fcn.00421091
test eax, eax
je 0x42116a
mov eax, dword [0x436bc0]
cmp eax, 1
jne 0x421146
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42116a
jmp 0x4211ac
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4211ac
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42116e
xor eax, eax
jmp 0x4211ac
mov eax, dword [esi]
push dword [0x436bc0]
call edi
mov edi, eax
test edi, edi
je 0x421190
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4211ac
lea edi, [esi + 0xff0]
push esi
push dword [0x436bc0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x421196
mov eax, esi
pop edi
pop esi
ret
jmp 0x421111

Function at 0x421350
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43674c]
jne 0x42135a
repz ret
jmp fcn.00421ad8
Function at 0x77f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2ae000]
push edi
jmp 0x77f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x77f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77f780
mov eax, 1
add ebx, ebx
jne 0x77f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x77f7b4
jne 0x77f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77f7d3
dec eax
add ebx, ebx
jne 0x77f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x77f798
add ebx, ebx
jne 0x77f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x77f825
xor ecx, ecx
sub eax, 3
jb 0x77f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x77f85a
sar eax, 1
mov ebp, eax
jmp 0x77f7f6
add ebx, ebx
jne 0x77f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77f7c4
inc ecx
add ebx, ebx
jne 0x77f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77f7c4
add ebx, ebx
jne 0x77f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x77f806
jne 0x77f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x77f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x77f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x77f836
jmp 0x77f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x77f844
add edi, ecx
jmp 0x77f786
pop esi
mov edi, esi
mov ecx, 0x17189
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x77f862
cmp byte [edi], 0x29
jne 0x77f862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x77f867
lea edi, [esi + 0x37c000]
mov eax, dword [edi]
or eax, eax
je 0x77f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x385c3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x385d80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x77f894
mov ecx, edi
jns 0x77f8c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x385d88]
or eax, eax
je 0x77f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x77f8b1
call dword [esi + 0x385d84]
mov ebp, dword [esi + 0x385d8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x77f913
sub esp, 0xffffff80
jmp 0x59d5d6