joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ac1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x421cc9
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x421b3b
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x421b7e
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x421b7e
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x421b65
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0041f8a1
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x421b7e
mov ebx, eax
cmp ebx, 3
jb 0x421c43
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0041f426
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x421c10
cmp eax, 3
jb 0x421c10
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x421bbe
jmp 0x421c66
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x421c6c
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041f426
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x421ca8
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421c85
lea ecx, [eax + esi + 0x1af70]
jmp 0x421c87
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0042193e
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x421cbb
push esi
call fcn.0041f9e5
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x421aeb
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421cdc
lea ecx, [eax + esi + 0x1af70]
jmp 0x421cde
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0042193e
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x4235da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [str._snu]
jne 0x4235e4
repz ret
jmp fcn.00429f6d
Function at 0x43224c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [str._snu]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042b639
and dword [ebp - 0x14], 0
cmp dword [0x45d110], 0
mov dword [ebp - 0x18], eax
jne 0x4322ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4323a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4323a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45d110], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45d114], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45d118], eax
call edi
push eax
call esi
mov dword [0x45d120], eax
test eax, eax
je 0x4322ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45d11c], eax
mov eax, dword [0x45d11c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432358
cmp dword [0x45d120], ecx
je 0x432358
push eax
call esi
push dword [0x45d120]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432358
test ebx, ebx
je 0x432358
call edi
test eax, eax
je 0x43234f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43234f
test byte [ebp - 8], 1
jne 0x432358
or dword [ebp + 0x10], 0x200000
jmp 0x43238b
mov eax, dword [0x45d114]
cmp eax, dword [ebp - 0x18]
je 0x43238b
push eax
call esi
test eax, eax
je 0x43238b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43238b
mov eax, dword [0x45d118]
cmp eax, dword [ebp - 0x18]
je 0x43238b
push eax
call esi
test eax, eax
je 0x43238b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45d110]
call esi
test eax, eax
je 0x4323a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4323a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004235da
leave
ret
Function at 0x4018b0
Capabilities:
Impersonate user

Disassembly:
push ecx
push 0x190
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [0x406448]
mov edx, dword [0x406444]
add esp, 4
lea eax, [esp]
push eax
push 0
push 2
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x4018ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x4019d0
Capabilities:
List user accounts

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 2
push 1
push 0
call sub.NETAPI32.dll_NetUserEnum
mov ecx, dword [esp + 0x10]
cmp ecx, 1
mov ebp, dword [0x406434]
jb 0x401a26
mov eax, dword [esp + 0x14]
add eax, 0xc
jmp 0x401a10
cmp dword [eax], 2
jne 0x401a18
add ebp, 1
add eax, 0x20
sub ecx, 1
jne 0x401a10
mov dword [0x406434], ebp
mov edi, dword [sym.imp.MSVCR80.dll_malloc]
lea eax, [ebp*4 + 8]
push eax
call edi
mov ebx, eax
add esp, 4
mov dword [0x406428], ebx
xor esi, esi
push 0x190
call edi
mov dword [ebx + esi*4], eax
add esi, 1
add esp, 4
cmp esi, ebp
jbe 0x401a43
mov esi, dword [esp + 0x14]
mov ebx, 1
cmp dword [esp + 0x10], ebx
jb 0x401ab1
mov ebp, dword [sym.imp.MSVCR80.dll_wcscpy_s]
xor edi, edi
mov edi, edi
cmp dword [esi + 0xc], 2
jne 0x401aa5
mov ecx, dword [esi]
push str.qwerty
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x401aa5
mov ecx, dword [esi]
mov edx, dword [0x406428]
mov eax, dword [edi + edx]
push ecx
push 0xc6
push eax
call ebp
add esp, 0xc
add edi, 4
add ebx, 1
add esi, 0x20
cmp ebx, dword [esp + 0x10]
jbe 0x401a70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402000
Capabilities:
Get token membership

Disassembly:
sub esp, 0x58
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x54], eax
lea eax, [esp + 4]
push eax
push 0xa
mov dword [esp + 0x14], 0x44
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 2
push 1
push 0
push 8
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov ecx, dword [esp]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.00402bb4
add esp, 0x58
ret
Function at 0x402540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x406440]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 0x190
push 8
push eax
call esi
mov ecx, dword [0x406440]
push 0x7d0
mov edi, eax
mov eax, 1
push 8
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call esi
push str.xer06Yoif60olfDd3lhjd3TfNVA60NZRX04xrXW60olfDd3TfNVA60NDd3lhjYoif60olfDdrXDd3TfNVA60NDd3lhjsdjfwep495u830weptrjsdju090t5w34it4powtjewudfogfdgkdfgopdfigopiddf_gjk
mov ebp, eax
push 0xc6
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edx, dword [0x40642c]
mov eax, dword [edx + 0x80]
add esp, 0xc
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025c5
mov dword [esp + 0x10], ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x3e6
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x3e6
je 0x4025e6
mov dword [esp + 0x10], ebx
xor edx, edx
jmp 0x4025f2
xor ebx, ebx
mov ax, word [ebp]
cmp ax, word [edi + edx*2]
je 0x402600
mov dword [esp + 0x10], ebx
mov eax, edi
add ebp, 4
add edx, 1
lea ebx, [eax + 2]
jmp 0x402610
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402610
sub eax, ebx
sar eax, 1
add eax, 0xffffffff
cmp edx, eax
jbe 0x4025f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40642c]
mov edx, dword [ecx + 0x84]
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40265d
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x1c]
push eax
push 0x3e6
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x3e6
je 0x402682
mov dword [esp + 0x14], esi
xor edx, edx
jmp 0x402688
xor esi, esi
mov cx, word [ebx]
cmp cx, word [edi + edx*2]
je 0x402695
mov dword [esp + 0x14], esi
mov eax, edi
add ebx, 4
add edx, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026a0
sub eax, esi
sar eax, 1
add eax, 0xffffffff
cmp edx, eax
jbe 0x402686
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
cmp dword [esp + 8], eax
pop ebp
pop ebx
je 0x4026d9
cmp dword [esp + 4], eax
je 0x4026d9
or eax, 0xffffffff
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x402820
Capabilities:
Create directory
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x40642c]
mov ecx, dword [eax + 0x88]
push ebx
push ebp
push esi
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [0x40642c]
mov eax, dword [edx + 0x80]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push eax
call ebx
mov ecx, dword [0x406440]
push 0x7d0
push 8
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
call fcn.004026e0
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x3e6
push esi
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40642c]
mov ecx, dword [eax + 0x84]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push ecx
call ebx
push 0
lea edx, [esp + 0x14]
push edx
push 0x3e6
mov edi, eax
push esi
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x406440]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push eax
call esi
mov ecx, dword [0x406444]
mov edx, dword [0x406440]
push ecx
push 0
push edx
call esi
mov eax, dword [0x406448]
mov ecx, dword [0x406440]
push eax
push 0
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402970
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [0x406440]
push esi
push 0x190
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push 0xc6
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [0x40642c]
mov edx, dword [ecx + 0x58]
push edx
push 0xc6
push esi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov eax, dword [0x40642c]
mov ecx, dword [eax + 0x90]
add esp, 0xc
push 0xa
push 0
push 0
push esi
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [0x406440]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
ret
Function at 0x402a00
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Resume thread
Terminate process
Terminate thread

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 1
push 0x404b80
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov edx, dword [esp]
push edx
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
call section..text
call fcn.00402000
cmp eax, 1
jne 0x402a49
call fcn.00402970
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push ebp
push esi
push edi
call fcn.00402910
push 0x190
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
push esi
call fcn.00401110
add esp, 8
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00402080
call fcn.00401930
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x18]
push eax
push 4
push 0
push 0x401fe0
push 0
push 0
call esi
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push 0x402530
push 0
push 0
mov edi, eax
call esi
lea edx, [esp + 0x20]
push edx
push 4
push 0
push 0x4029e0
push 0
push 0
mov ebx, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call esi
push edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push ebx
call esi
call fcn.004019d0
mov eax, dword [esp + 0x28]
push 0
push 0x401ac0
push 0
push 0x81
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
call esi
push 0
push ebx
call esi
call fcn.00402970
call fcn.00402820
push 0x7d0
call ebp
mov eax, dword [0x40642c]
mov ecx, dword [eax]
mov edx, dword [eax + 0x8c]
push 0
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x40642c]
mov ecx, dword [eax + 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push ecx
call esi
mov edx, dword [0x40642c]
mov eax, dword [edx + 0x80]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push eax
call esi
push 0xffffffffffffffff
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10

Function at 0x402bb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x402bbe
repz ret
jmp fcn.00402ed8
Function at 0xf6b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xf6b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xf94074
push ecx
mov edi, eax
call fcn.00f7f198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf6b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f7f02e
push esi
call fcn.00f7efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf6e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xf6e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xf99720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf6e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00f7f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xf6e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xf99720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf6e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00f80082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf6e957
mov word [eax], si
add eax, 2
push eax
call fcn.00f80030
add esp, 4
jmp 0xf6e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xf6e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf6e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xf6eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xf6f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf6f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xf94458
push ecx
call fcn.00f7f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f7f1e1
add esp, 0x10
jmp 0xf6f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f7f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f7edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f6f050
mov eax, dword [0xf99728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xf6f13b
push esi
call fcn.00f6efb0
add esp, 4
mov dword [0xf99728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf6f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00f6eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xf72440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf724b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf7248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf72471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf7247e
add edx, ecx
cmp ebx, edx
jb 0xf7248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf72467
xor ecx, ecx
jmp 0xf724a2
test eax, eax
jne 0xf72492
xor ecx, ecx
jmp 0xf724a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00f723c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf728f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xf72921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xf72946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xf7296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xf72993
push ecx
push esi
call fcn.00f724c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xf73c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xf73c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xf73c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xf73c38
add edx, eax
cmp ebx, edx
jb 0xf73c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xf73c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xf73c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xf73c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf73cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf73c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf73ca8
add edx, ecx
cmp ebx, edx
jb 0xf73cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf73c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xf73f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00f80145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf73ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xf73fdd
lea eax, [esp + 0x18]
push eax
jmp 0xf73fe2
push 0xf99720
call fcn.00f7ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf73fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf73f40
push 4
push ecx
push eax
call fcn.00f8043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret