joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c903
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x100c91e
push 0x80004005
call fcn.01008489
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100c920
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100cf46
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101d0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0100c861
mov edi, eax
cmp edi, esi
je 0x100cfb8
lea ecx, [ebp - 0x214]
call fcn.0100c7ee
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100f3ef
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100cfd6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100cf46
cmp eax, esi
jne 0x100d021
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x100cfc0
lea ecx, [ebp - 0x214]
call fcn.0100c7ee
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0100c768
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0100c7ee
mov eax, esi
jmp 0x100cfa8
Function at 0x100e1c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10197a2
call fcn.0100f4b2
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100e21d
call fcn.0100c64e
mov esi, eax
jmp 0x100e326
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100e236
call fcn.0100c64e
jmp 0x100e318
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100e22c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100e29c
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100e282
lea ecx, [ebp - 0x418]
call fcn.0100cedb
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100861e
mov eax, esi
call fcn.0100f51d
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100d4d6
mov dword [ebp - 4], 1
jmp 0x100e2ca
cmp dword [ebp - 0x418], esi
jne 0x100e2d9
mov esi, 0x8007000e
jmp 0x100e31a
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100e22c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100e087
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100e287
lea ecx, [ebp - 0x418]
call fcn.0100cedb
jmp 0x100e287

Function at 0x100e88d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100e904
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100e904
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test ebx, ebx
je 0x100e903
test esi, esi
jbe 0x100e903
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x100e903
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x100e903
push esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100ee6a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100edff
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100eedd
cmp dword [ebp - 0x94], 5
jb 0x100eefe
jmp 0x100eefa
cmp dword [ebp - 0x88], 1
jne 0x100eefe
cmp dword [ebp - 0x94], 4
ja 0x100eefa
jne 0x100eefe
cmp dword [ebp - 0x90], 0
jbe 0x100eefe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002f74
call fcn.01007cc4
test eax, eax
jge 0x100ef1f
mov byte [0x101d590], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100f3ef
leave
ret

Function at 0x101146b
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x10032cc
lea ecx, [ebp - 0xc]
call fcn.010108a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10114d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10114af
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10114d9
test byte [eax + 0x1c], 4
je 0x10114d9
push dword [ebp - 4]
push 0x10030f8
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010049d7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10114e5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010108ed
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x101793f
Capabilities:
Query environment variable

Disassembly:
push 0x218
mov eax, 0x1019b3c
call fcn.0100f477
mov esi, dword [ebp + 8]
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x10044f4
lea ecx, [ebp - 0x224]
call fcn.010108a6
and dword [ebp - 4], 0
test esi, esi
jne 0x10179c6
mov ecx, 0x80070057
mov dword [ebp - 0x21c], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x10179a7
test byte [eax + 0x1c], 4
je 0x10179a7
push ecx
push 0x100442c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013007
mov esi, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.010108ed
mov eax, esi
call fcn.0100f509
ret 4
and dword [esi], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10044bc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1017a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10179f8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10179a7
test byte [eax + 0x1c], 4
je 0x10179a7
push dword [ebp - 0x21c]
push 0x100442c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010049d7
jmp 0x10179a7
lea eax, [ebp - 0x21c]
push eax
push 2
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.01011cfd
mov dword [esi], eax
jmp 0x10179a7
Function at 0x30001a1c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
jne 0x30001a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300019ec
mov ebx, eax
jmp 0x30001b02
cmp dword [ebp - 4], 1
jle 0x30001aec
push dword [edi + 4]
push 0x300011cc
call fcn.30001a04
test eax, eax
je 0x30001aec
cmp dword [ebp - 4], 4
mov dword [ebp - 8], esi
jl 0x30001aec
mov eax, dword [edi + 8]
push 3
pop ebx
push dword [edi + 0xc]
mov dword [ebp - 0xc], eax
push 0x300011b8
call fcn.30001a04
test eax, eax
je 0x30001aa1
cmp dword [ebp - 4], 6
jne 0x30001aec
mov eax, dword [edi + 0x10]
push 5
mov dword [ebp - 8], eax
pop ebx
lea eax, [ebx + 1]
cmp eax, dword [ebp - 4]
jne 0x30001aec
push 0
push dword [edi + ebx*4]
call fcn.30003638
mov esi, eax
test esi, esi
jne 0x30001ac0
mov ebx, 0x80004005
jmp 0x30001af1
lea ebx, [esi + 8]
push ebx
push dword [esi]
call fcn.30004296
mov ebx, dword [ebx]
test ebx, ebx
jne 0x30001ad9
cmp dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jne 0x30001adc
mov eax, dword [ebp - 0xc]
push ebx
push eax
push dword [esi + 4]
push dword [esi]
call fcn.30004d56
mov ebx, eax
jmp 0x30001af1
mov ebx, 0x80070057
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x30001b02
push esi
call fcn.300034ea
xor eax, eax
test ebx, ebx
setl al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x300031ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
xor ebx, ebx
lea edi, [esi + 8]
cmp eax, dword [edi]
mov dword [ebp - 8], ebx
jne 0x30003341
push 0x802
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x30003352
push 0x802
push 0
push ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
jne 0x30003257
push eax
push edi
push 0x800
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30003348
jmp 0x3000326c
mov ecx, dword [eax]
push edi
push 0x800
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x30003348
mov ecx, dword [edi]
test ecx, ecx
je 0x30003348
xor edx, edx
cmp dword [esi + 0x14], edx
jne 0x300032ae
mov al, byte [ebx]
cmp al, 0xff
jne 0x30003292
cmp byte [ebx + 1], 0xfe
jne 0x30003292
mov dword [esi + 0x18], 1
jmp 0x300032a5
cmp al, 0xfe
jne 0x300032a5
cmp byte [ebx + 1], 0xff
jne 0x300032a5
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], edx
je 0x300032b7
shr ecx, 1
mov dword [edi], ecx
cmp dword [esi + 0x1c], edx
je 0x300032e2
mov ecx, dword [edi]
lea ecx, [ecx + ecx - 2]
cmp ecx, edx
jbe 0x300032e2
dec ecx
shr ecx, 1
lea eax, [ebx + 1]
inc ecx
mov dl, byte [eax - 1]
mov byte [ebp + 0xb], dl
mov dl, byte [eax]
mov byte [eax - 1], dl
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc eax
dec ecx
jne 0x300032cd
cmp dword [esi + 0x18], 0
je 0x300032f7
push dword [esi + 0x10]
call fcn.300034d6
mov dword [esi + 0x10], ebx
xor ebx, ebx
jmp 0x30003331
test byte [0x300070c0], 1
jne 0x30003312
or dword [0x300070c0], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x300070bc], eax
push 0x800
push dword [esi + 0x10]
push dword [edi]
push ebx
push 0
push dword [0x300070bc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [edi], eax
je 0x30003348
xor eax, eax
cmp dword [ebp - 4], eax
je 0x3000333e
cmp dword [esi + 0x18], eax
je 0x3000333e
inc eax
mov dword [esi + 0xc], eax
mov dword [ebp - 8], 1
test ebx, ebx
je 0x30003352
push ebx
call fcn.300034d6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x300039db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.300019ec
test eax, eax
jl 0x30003a41
test esi, esi
mov edx, dword [ebp - 4]
jne 0x30003a14
test edi, edi
jmp 0x30003a2f
test edi, edi
je 0x30003a38
cmp edx, 1
je 0x30003a22
cmp edx, 2
jne 0x30003a38
mov ecx, dword [esi]
cmp ecx, 2
jb 0x30003a31
cmp word [ecx + edi - 2], 0
je 0x30003a38
mov eax, 0x8000ffff
jmp 0x30003a41
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x30003a41
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14
Function at 0x30004405
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x30001954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
push esi
xor ebx, ebx
mov dword [ebp - 0x40c], 0x201
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x30004472
push 0x402
lea eax, [ebp - 0x408]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jl 0x3000446e
lea edi, [ebp - 0x408]
cmp edi, ebx
jne 0x30004474
mov edi, esi
push 1
push 0
push edi
push 0x300018e8
push 0x300012b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x30004495
mov ebx, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.300050fe
leave
ret 4
Function at 0x3000504a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30001974
push 0x30001958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3000507f
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30001954
push ebx
call edi
test esi, esi
mov dword [0x30001954], esi
jne 0x300050e3
mov dword [0x30001954], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300070b0], 0x44bf19b1
pop ebx
leave
ret

Function at 0x300050fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001954]
jne 0x300054ab
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300071f0], eax
mov dword [0x300071ec], ecx
mov dword [0x300071e8], edx
mov dword [0x300071e4], ebx
mov dword [0x300071e0], esi
mov dword [0x300071dc], edi
mov word [0x30007208], ss
mov word [0x300071fc], cs
mov word [0x300071d8], ds
mov word [0x300071d4], es
mov word [0x300071d0], fs
mov word [0x300071cc], gs
pushfd
pop dword [0x30007200]
mov eax, dword [ebp]
mov dword [0x300071f4], eax
mov eax, dword [ebp + 4]
mov dword [0x300071f8], eax
lea eax, [ebp + 8]
mov dword [0x30007204], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30007140], 0x10001
mov eax, dword [0x300071f8]
mov dword [0x300070f4], eax
mov dword [0x300070e8], 0xc0000409
mov dword [0x300070ec], 1
mov eax, dword [0x30001954]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300070b0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30007138], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001988
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30007138], 0
jne 0x3000559b
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40d4e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
jmp 0x40d4fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d4f0
mov eax, 1
add ebx, ebx
jne 0x40d513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d508
jne 0x40d524
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d508
xor ecx, ecx
sub eax, 3
jb 0x40d538
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d5aa
mov ebp, eax
add ebx, ebx
jne 0x40d543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d574
inc ecx
add ebx, ebx
jne 0x40d560
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d555
jne 0x40d571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d555
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d594
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d585
jmp 0x40d4f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d594
add edi, ecx
jmp 0x40d4f6
pop esi
mov edi, esi
mov ecx, 0x11a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d5b2
cmp byte [edi], 3
jne 0x40d5b2
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 0x40d5b7
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d626
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d5e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd044]
or eax, eax
je 0x40d620
mov dword [ebx], eax
add ebx, 4
jmp 0x40d601
call dword [esi + 0xd040]
mov ebp, dword [esi + 0xd048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xd681]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40d672
sub esp, 0xffffff80
jmp 0x4012d0
Function at 0xe42370
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 0xe4238e
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 0xe6b074
push ecx
mov edi, eax
call fcn.00e56198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe423cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e5602e
push esi
call fcn.00e55fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe45850
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 0xe458ae
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 0xe70720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe458ba
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.00e561e1
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 0xe458ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe70720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe4592a
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.00e57082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe45957
mov word [eax], si
add eax, 2
push eax
call fcn.00e57030
add esp, 4
jmp 0xe45959
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 0xe458ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe458b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe460c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe6b458
push ecx
call fcn.00e561e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e561e1
add esp, 0x10
jmp 0xe460d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e5620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e55dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e46050
mov eax, dword [0xe70728]
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 0xe4613b
push esi
call fcn.00e45fb0
add esp, 4
mov dword [0xe70728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe4614c
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.00e45ff0
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 0xe49440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe494b7
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 0xe4948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe49471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe4947e
add edx, ecx
cmp ebx, edx
jb 0xe4948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe49467
xor ecx, ecx
jmp 0xe494a2
test eax, eax
jne 0xe49492
xor ecx, ecx
jmp 0xe494a2
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.00e493c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret