joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c1625
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x100f0e44
call fcn.100c908c
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp byte [ebp + 0xc], bl
je 0x100c16e1
push esi
push ebx
push 0x1014a324
push 0x1014a2fc
push ebx
push ebx
call fcn.100478ea
pop ecx
push eax
call fcn.100c8799
add esp, 0x14
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
mov esi, eax
mov dword [ebp + 0xc], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
lea ecx, [ebp + 0x10]
call fcn.10009e15
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x44]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000548f
push 0x1010d92c
push str..part
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10006657
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
lea ecx, [edi - 4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [esi - 0x10]
call fcn.10003f60
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10003f60
pop esi
jmp 0x100c1704
push ebx
call fcn.100478ea
mov edx, dword [eax]
pop ecx
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x10]
mov edx, dword [ebp + 0x10]
shr edx, 0x10
push edx
push dword [ebp + 8]
lea ecx, [edi - 4]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100c1b68
Capabilities:
Create directory

Disassembly:
mov eax, 0x100e4706
call fcn.100c908c
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x100c1ba4
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
dec eax
push eax
lea ecx, [ebp + 8]
call fcn.1000debc
cmp ax, 0x5c
je 0x100c1bc1
push 0x100f6c64
lea ecx, [ebp + 8]
call fcn.1001195c
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], edi
jle 0x100c1c17
push esi
lea ecx, [ebp + 8]
call fcn.1000debc
cmp ax, 0x5c
jne 0x100c1c0e
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.10028e9a
mov eax, dword [eax]
push edi
push eax
call fcn.100cc3c7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
cmp eax, 0xffffffff
setne bl
add ecx, 0xfffffff0
call fcn.10003f60
test bl, bl
je 0x100c1c91
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x100c1bcb
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 0xc]
jge 0x100c1b85
push 0xc
pop ebx
push ebx
call fcn.100c839d
mov edi, eax
and dword [edi + 4], 0
pop ecx
mov dword [edi], ebx
mov dword [edi + 8], 1
push esi
lea ecx, [ebp + 8]
call fcn.1000debc
cmp ax, 0x5c
jne 0x100c1c7c
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.10028e9a
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.10003f60
test bl, bl
jne 0x100c1ca6
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x100c1c3c
push edi
call fcn.100c77f9
pop ecx
jmp 0x100c1b85
call fcn.100cc2f5
cmp dword [eax], 2
je 0x100c1c17
xor esi, esi
jmp 0x100c1b88
push edi
call fcn.100c77f9
pop ecx
jmp 0x100c1c9f

Function at 0x100c1ddc
Capabilities:
Copy file

Disassembly:
mov eax, 0x100ef75a
call fcn.100c908c
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.10009e15
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
call fcn.10009e15
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
call dword [eax + 0x1c]
push ecx
lea eax, [ebp + 8]
mov dword [ebp + 0xc], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.1000548f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x100c1e40
push 0x1010aed8
lea ecx, [ebp + 8]
call fcn.1001195c
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x100c2406
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100f104e
call fcn.100c908c
sub esp, 0x60
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.10009e15
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x1c]
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
mov edi, 0x1010aed8
push edi
lea ecx, [ebp - 0x10]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10006fb9
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 0x20]
cmp al, bl
je 0x100c2465
push edi
lea ecx, [ebp - 0x10]
call fcn.1001195c
push 0x40
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.100c7c60
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
call fcn.1000548f
push 0x104
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100054ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1000dbfd
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100c24eb
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100c2537
push 0x101519f8
lea ecx, [ebp - 0x18]
call fcn.1007170f
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__update.error.execute____s___d_
push eax
call fcn.100070c4
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, esi
call fcn.100c1a23
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
lea ecx, [edi - 0x10]
call fcn.10003f60
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100c255b
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x100f0fc6
call fcn.100c908c
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, 0x101519f8
push ebx
lea ecx, [ebp - 0x10]
call fcn.1007170f
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x100c25f1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.10009e15
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
call dword [eax + 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000688b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10003f60
push ecx
mov eax, esp
mov dword [ebp + 8], esp
mov edi, 0x1010aed8
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.10006fb9
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 0x20]
test al, al
je 0x100c25fc
push edi
lea ecx, [ebp - 0x10]
call fcn.1001195c
jmp 0x100c25fc
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10006a3d
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100c2659
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100c2659
push ebx
lea ecx, [ebp + 8]
call fcn.1007170f
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push str.__update.error.delete____d
push eax
call fcn.100070c4
pop ecx
pop ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, esi
call fcn.100c1a23
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
lea ecx, [edi - 0x10]
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100c3ebc
Capabilities:
Move file

Disassembly:
mov eax, 0x100f10f0
call fcn.100c908c
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push edi
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
sar eax, 2
xor edi, edi
test eax, eax
jbe 0x100c3f64
push edi
lea ecx, [ebp - 0x30]
call fcn.1008d01e
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x1c]
push 0x1010aed8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.10006fb9
add esp, 0xc
push 9
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100c3f8b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10003f60
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
inc edi
sar eax, 2
cmp edi, eax
jb 0x100c3eec
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x6c]
lea ecx, [ebp - 0x30]
call fcn.1001249c
push dword [ebp - 0x30]
call fcn.100c77f9
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 5
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10003f60
jmp 0x100c3f6c

Function at 0x100c42b9
Capabilities:
Check if file exists

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 8]
test eax, eax
setne bl
add ecx, 0xfffffff0
call fcn.10003f60
mov al, bl
pop ebx
ret 4

Function at 0x100c7070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101519e0], 0
push esi
jne 0x100c6fe3
call fcn.100c6f09
test eax, eax
je 0x100c7026
mov eax, dword [0x101519e0]
cmp eax, 1
jne 0x100c7004
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100c7026
pop esi
ret
push eax
call dword [0x101519e8]
test eax, eax
jne 0x100c706e
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 0x100c702a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101519e0]
call dword [0x101519e8]
mov edi, eax
test edi, edi
je 0x100c704f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100c706b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x101519e0]
call dword [0x101519e4]
add edi, 0x10
cmp edi, esi
jb 0x100c7057
mov eax, edi
pop edi
pop esi
ret
jmp 0x100c6fd0
Function at 0x100cc33e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100cc36f
call fcn.100cc308
mov dword [eax], esi
call fcn.100cc2f5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100c834c
add esp, 0x14
push 0x16
pop eax
jmp 0x100cc3c4
test dword [ebp + 0xc], 0xfffffff9
jne 0x100cc34b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100cc39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100cc31b
pop ecx
call fcn.100cc2f5
mov eax, dword [eax]
jmp 0x100cc3c4
test al, 0x10
jne 0x100cc3c2
test al, 1
je 0x100cc3c2
test byte [ebp + 0xc], 2
je 0x100cc3c2
call fcn.100cc308
mov dword [eax], 5
call fcn.100cc2f5
mov dword [eax], 0xd
jmp 0x100cc393
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100ce41c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1014dfc0]
jne 0x100ce426
repz ret
jmp fcn.100da7ab

Function at 0x100dab41
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100d0573
and dword [ebp - 4], 0
cmp dword [0x10152570], 0
mov ebx, eax
jne 0x100dabf2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100daca3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100daca3
push eax
call fcn.100d0501
mov dword [esp], 0x1010c754
push edi
mov dword [0x10152570], eax
call esi
push eax
call fcn.100d0501
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10152574], eax
call esi
push eax
call fcn.100d0501
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10152578], eax
call esi
push eax
call fcn.100d0501
pop ecx
mov dword [0x10152580], eax
test eax, eax
je 0x100dabf2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100d0501
pop ecx
mov dword [0x1015257c], eax
mov eax, dword [0x1015257c]
cmp eax, ebx
je 0x100dac4a
cmp dword [0x10152580], ebx
je 0x100dac4a
push eax
call fcn.100d057c
push dword [0x10152580]
mov esi, eax
call fcn.100d057c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100dac4a
test edi, edi
je 0x100dac4a
call esi
test eax, eax
je 0x100dac41
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100dac41
test byte [ebp - 0xc], 1
jne 0x100dac4a
or dword [ebp + 0x10], 0x200000
jmp 0x100dac83
mov eax, dword [0x10152574]
cmp eax, ebx
je 0x100dac83
push eax
call fcn.100d057c
pop ecx
test eax, eax
je 0x100dac83
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100dac83
mov eax, dword [0x10152578]
cmp eax, ebx
je 0x100dac83
push eax
call fcn.100d057c
pop ecx
test eax, eax
je 0x100dac83
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10152570]
call fcn.100d057c
pop ecx
test eax, eax
je 0x100daca3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100daca5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x783370
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 0x78338e
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 0x7ac074
push ecx
mov edi, eax
call fcn.00797198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7833cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0079702e
push esi
call fcn.00796fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x786850
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 0x7868ae
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 0x7b1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7868ba
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.007971e1
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 0x7868ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7b1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x78692a
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.00798082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x786957
mov word [eax], si
add eax, 2
push eax
call fcn.00798030
add esp, 4
jmp 0x786959
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 0x7868ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7868b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x786ff0
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 0x787080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7870c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7ac458
push ecx
call fcn.007971e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007971e1
add esp, 0x10
jmp 0x7870d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0079720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00796dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00787050
mov eax, dword [0x7b1728]
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 0x78713b
push esi
call fcn.00786fb0
add esp, 4
mov dword [0x7b1728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x78714c
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.00786ff0
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 0x78a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x78a4b7
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 0x78a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x78a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x78a47e
add edx, ecx
cmp ebx, edx
jb 0x78a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x78a467
xor ecx, ecx
jmp 0x78a4a2
test eax, eax
jne 0x78a492
xor ecx, ecx
jmp 0x78a4a2
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.0078a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x78a8f0
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 0x78a921
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 0x78a946
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 0x78a96e
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 0x78a993
push ecx
push esi
call fcn.0078a4c0
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 0x78bc00
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 0x78bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x78bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x78bc38
add edx, eax
cmp ebx, edx
jb 0x78bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x78bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x78bc50
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 0x78bc70
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 0x78bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x78bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x78bca8
add edx, ecx
cmp ebx, edx
jb 0x78bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x78bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x78bf60
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.00798145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x78bffb
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 0x78bfdd
lea eax, [esp + 0x18]
push eax
jmp 0x78bfe2
push 0x7b1720
call fcn.00797fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x78bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x78bf40
push 4
push ecx
push eax
call fcn.0079843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret