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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40be66
xor eax, eax
jmp 0x40beb6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40be62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40be62
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0040814e
test eax, eax
je 0x40bea2
push edi
push dword [ebp - 4]
push eax
call fcn.0048a820
add esp, 0xc
mov eax, ebx
call fcn.0040bd97
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40beba
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4d1440
call fcn.004ce9f0
push ecx
push ecx
mov eax, dword [0x5096c0]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x5096c0
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x40bef2
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00422ab0
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x40bfe8
mov eax, dword [0x5096c0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push str._s_d._s
call fcn.004229e7
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40bfdd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40bfd4
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.0040814e
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40bfcb
cmp dword [ebp + 8], edi
jne 0x40bfcb
mov eax, edi
call fcn.0040bd97
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
xor eax, eax
mov edx, esi
call fcn.0040812e
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov esi, dword [ebp - 0x14]
jmp 0x40bfad
Function at 0x40dbf2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2f4]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40dc1d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2e8]
cmp eax, ebx
je 0x40dcfc
push eax
call fcn.004222f4
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40dcb1
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40dc56
push 1
push edi
push esi
call fcn.0040c536
mov eax, dword [esi + 0x2e8]
cmp eax, dword [esi + 0x2e4]
jne 0x40dcb1
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00422535
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40dca0
cmp word [eax], bx
je 0x40dca0
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40dcb1
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40dcb1
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2e8], ebx
je 0x40dcfc
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc
Function at 0x40e849
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d218a
call fcn.004ce9f0
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040b0dd
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040e983
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x40e96c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e969
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x40e956
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x40e91f
mov ecx, dword [ebp - 0x14]
push 0x40b115
push 0x40ebb3
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.00489f23
mov eax, edi
jmp 0x40e921
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x40e956
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0040ebbd
test eax, eax
jne 0x40e951
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x40e951
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x40e956
call fcn.0040b0dd
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40eaf7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00422646
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x412e34
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4d5348
call fcn.004ce9f0
sub esp, 0x21c
mov eax, dword [0x5096c0]
push ebx
push esi
push edi
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x228], bx
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00422bdc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00422bdc
push 0x2e
lea esi, [ebp - 0x10]
call fcn.00422875
cmp eax, 0xffffffff
je 0x412ee9
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00422893
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00422ab0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x10]
fstp qword [ebp - 0x20]
push eax
call fcn.00412ff9
test eax, eax
jne 0x412f46
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x412f81
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, ebx
jmp 0x412f35
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x412fe9
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040814e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x412fdf
cmp dword [ebp - 0x14], edi
jne 0x412fdf
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x412fc7
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040bd97
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x412f67
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.0040812e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x412f67
Function at 0x41820c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x41823b
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xbc]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x418272
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x418293
push dword [esi + 0x10]
mov dword [esi + 0xbc], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x41826c
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41826c
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0xbc], 0
jne 0x418232
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421260
jmp 0x418234
cmp eax, 0x47
jne 0x4182b8
push dword [ebp + 0x14]
lea edi, [esi + 0xbc]
mov eax, esi
mov dword [edi], ebx
call fcn.00418310
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x418230
cmp eax, 0x18
jne 0x418272
push dword [ebp + 0x10]
mov dword [esi + 0xbc], ebx
call fcn.004183e7
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4182f0
push dword [esi + 8]
jmp 0x4182e6
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x4182fa
push dword [eax + 8]
call fcn.004222f4
cmp eax, edi
pop ecx
jne 0x4182d7
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040c1ee
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xbc], edi
jne 0x418232
jmp 0x418272
Function at 0x42162f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4d1f68
call fcn.004ce9f0
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], vtable.CBkWindow.0
call fcn.00419069
push 0x50a370
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00419069
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.00419069
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.0042175c
push 0x50a370
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 4], eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
lea esi, [edi + 0x28]
mov ecx, 0x5096c0
call fcn.00420a91
xor ebx, ebx
lea esi, [edi + 0x40]
mov ecx, 0x5096c0
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
call fcn.00420a91
lea esi, [edi + 0x48]
mov ecx, 0x5096c0
mov dword [edi + 0x44], ebx
call fcn.00420a91
lea esi, [edi + 0x4c]
mov ecx, 0x5096c0
call fcn.00420a91
or dword [edi + 0x50], 0xffffffff
or dword [edi + 0x54], 0xffffffff
or dword [edi + 0x64], 0xffffffff
lea eax, [edi + 0x14]
push eax
mov dword [edi + 0x58], ebx
mov word [edi + 0x5c], bx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], 1
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x423490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x42351e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4234c7
cmp dword [ebp - 8], 2
jne 0x42351d
push esi
mov esi, dword [ebp + 0xc]
call fcn.00422606
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004228e8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x42351c
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x42350e
push eax
call fcn.00489b50
pop ecx
mov edx, esi
call fcn.0040e1f4
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x423525
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x423553
push dword [esp + 0xc]
call fcn.00489b50
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x423553
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x423751
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 0x10]
add esi, 8
cmp dword [esi + 4], ebx
push edi
jbe 0x42376f
call fcn.0048a49e
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x42377c
call fcn.0048a49e
cmp edi, ebx
je 0x4237a9
mov eax, dword [esi + 8]
sub eax, ebx
sar eax, 2
mov ecx, eax
shl ecx, 2
test eax, eax
lea edx, [ecx + edi]
mov dword [ebp - 4], edx
jle 0x4237a3
push ecx
push ebx
push ecx
push edi
call fcn.0048b034
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4237c0
xor eax, eax
jmp 0x42388b
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4237e8
test ebx, ebx
je 0x4237b9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4237b9
lea eax, [ebp - 0x214]
push str.explorer.exe
push eax
call fcn.0048b85c
test eax, eax
pop ecx
pop ecx
jne 0x423855
mov edx, dword [esi + 4]
test edx, edx
jne 0x42380a
xor ecx, ecx
jmp 0x423812
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x423835
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x423835
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x423855
mov edi, dword [esi + 8]
cmp edx, edi
jbe 0x423841
call fcn.0048a49e
push edi
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.004261a3
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4237e8
test ebx, ebx
je 0x423871
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
jne 0x42387c
xor esi, esi
jmp 0x423884
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42604a
Capabilities:
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x426069
push 4
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42606c
xor eax, eax
inc eax
ret 4

Function at 0x42609e
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x4260cf
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4260c2
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
ret 4

Function at 0x42612c
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x42619d
cmp dword [esp + 8], edi
je 0x42619d
mov eax, dword [esi + 8]
cmp eax, edi
je 0x426158
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x426158
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], edi
jne 0x42619d
push ebx
mov ebx, dword [esi]
push 0xc
call fcn.00443835
cmp eax, edi
pop ecx
jne 0x426170
xor eax, eax
jmp 0x42618e
mov ecx, dword [esp + 0xc]
push edi
push edi
push eax
push 0x426437
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
call fcn.0048d27c
add esp, 0x18
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 8], eax
pop ebx
mov eax, ecx
jmp 0x42619f
xor eax, eax
pop edi
ret 4
Function at 0x4264e0
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d40f8
call fcn.004ce9f0
sub esp, 0x14
mov eax, dword [0x5096c0]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, 0x5096c0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 4], esi
mov edi, 0x50bd68
mov dword [ebp - 0x1c], esi
push str.GetPacketData__d
mov esi, edi
call fcn.0046353e
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, ebx
call fcn.004265f0
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp - 0x14], eax
call fcn.0046353e
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
jne 0x426555
mov dword [ebx + 0x1c], 1
jmp 0x4265ce
push 0x28
call fcn.00443835
test eax, eax
pop ecx
je 0x42656b
push eax
call fcn.0045355f
mov ebx, eax
jmp 0x42656d
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x1c], ebx
je 0x4265ce
push str.Extract...
call fcn.0046353e
mov eax, dword [ebx]
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [eax]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Extract_return:_d
call fcn.0046353e
test ebx, ebx
pop ecx
pop ecx
je 0x4265c7
xor esi, esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4265de
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4265eb
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x20]
jmp 0x4265a9
Function at 0x4266d1
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42675d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x50bd68
call fcn.0046353e
add esp, 0xc
jmp 0x4267d5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x426790
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4267b8
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4267c7
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x50bd68
call fcn.0046353e
add esp, 0xc
jmp 0x4267ce
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret