joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a2de
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x364
mov eax, 0x4a20ae
call fcn.0045201c
mov ebx, ecx
mov dword [ebp - 0x2d4], ebx
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2cc], edx
mov eax, dword [ebx]
mov dword [ebp - 0x2d8], esi
test eax, eax
jne 0x43a31d
mov ecx, 0x1e1
call fcn.0040c063
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], edx
push ecx
push edx
push edx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
mov dword [ebp - 0x2c8], edi
test edi, edi
jne 0x43a4ad
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [ebp - 4], ecx
mov edi, ecx
mov dword [ebp - 0x2cc], 1
cmp dword [ebp - 0x2c4], edi
jbe 0x43a444
push ecx
push ecx
push ecx
xor eax, eax
mov dword [ebp - 0x2d0], 0x100
push ecx
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov dword [ebp - 0x2c8], ebx
cmp ebx, 0x103
je 0x43a444
test ebx, ebx
jne 0x43a44e
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 7
call fcn.004016ad
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x228]
mov eax, dword [esi + 4]
push ecx
cmp dword [esi + 8], eax
je 0x43a412
mov ecx, eax
call fcn.00401bd9
add dword [esi + 4], 0x18
jmp 0x43a41a
push eax
mov ecx, esi
call fcn.0040ba0b
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0x10
call fcn.0040204a
mov ebx, dword [ebp - 0x2d4]
xor ecx, ecx
inc edi
mov byte [ebp - 4], cl
cmp edi, dword [ebp - 0x2c4]
jb 0x43a370
mov eax, esi
call fcn.00451fc5
ret 4
lea ecx, [ebp - 0x370]
call fcn.00402a5a
push str.RegEnumKeyEx_failed_with
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.00403b01
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, eax
call fcn.00403b56
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
call fcn.00402a43
push ecx
movzx eax, bx
or eax, 0x80070000
mov byte [ebp - 4], 9
push 0x21a
test ebx, ebx
push str.c:dvsp4_build_sw_relgfclient_rel_03_16_backendcommonupdtlib_srcwindows_registry.cpp
cmovle eax, ebx
push eax
lea eax, [ebp - 0x240]
jmp 0x43a50a
lea ecx, [ebp - 0x370]
call fcn.00402a5a
push str.RegQueryInfoKey_failed_with
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00403b01
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, eax
call fcn.00403b56
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call fcn.00402a43
push ecx
movzx eax, di
or eax, 0x80070000
mov byte [ebp - 4], 2
push 0x1f7
test edi, edi
push str.c:dvsp4_build_sw_relgfclient_rel_03_16_backendcommonupdtlib_srcwindows_registry.cpp
cmovle eax, edi
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.0040bc87
push 0x4d95fc
lea eax, [ebp - 0x2c0]
push eax
call fcn.0046a3fc
int3
Function at 0x43d88e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, edx
mov dword [ebp - 0x10], eax
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test eax, eax
jle 0x43d97f
push ebx
push esi
mov ecx, dword [edi + 8]
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
add ebx, ecx
mov esi, dword [edi + 4]
mov edi, eax
adc esi, eax
shr edi, 0x13
shld eax, ecx, 0xd
xor edx, edx
mov dword [ebp - 4], esi
shl ecx, 0xd
or edx, eax
or edi, ecx
xor edx, esi
xor edi, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
mov edx, ecx
add edx, dword [edi + 0x10]
mov eax, dword [edi + 0x1c]
mov esi, eax
adc esi, dword [edi + 0x14]
mov edi, eax
shld eax, ecx, 0x10
shr edi, 0x10
shl ecx, 0x10
or edi, ecx
mov dword [ebp - 0xc], esi
xor edi, edx
mov dword [ebp - 0x18], edx
xor esi, esi
xor edx, edx
or esi, eax
or edx, ebx
xor esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, esi
mov ebx, dword [ebp - 8]
add eax, edi
mov dword [ebp - 4], eax
adc edx, esi
shr ecx, 0xb
shld esi, edi, 0x15
mov dword [ebx], eax
xor eax, eax
or eax, esi
shl edi, 0x15
or ecx, edi
mov dword [ebx + 4], edx
xor ecx, dword [ebp - 4]
xor eax, edx
mov edi, dword [ebp - 0x1c]
mov edx, edi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], ecx
mov ecx, edi
mov ebx, dword [ebp - 0x14]
mov esi, ebx
add esi, dword [ebp - 0x18]
adc edx, dword [ebp - 0xc]
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
or eax, edi
shl ebx, 0x11
mov edi, dword [ebp - 8]
xor eax, edx
or ecx, ebx
xor ecx, esi
mov dword [edi + 0xc], eax
xor eax, eax
or eax, esi
mov dword [edi + 8], ecx
sub dword [ebp - 0x10], 1
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jne 0x43d8a9
pop esi
pop ebx
pop edi
leave
ret

Function at 0x43dc15
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
call fcn.0044ed94
mov esi, eax
test esi, esi
je 0x43dc6b
push ebx
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x43dc55
push 4
lea eax, [ebp - 4]
mov ecx, ebx
push eax
call dword [0x4a4360]
call ebx
xor ecx, ecx
inc ecx
cmp al, cl
cmove edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
je 0x43dc6b
mov edx, dword [ebp - 4]
mov ecx, str.RtlGenRandom
jmp 0x43dc91
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 0xc]
xor esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
mov ecx, str.fallback_4_
mov dword [ebp - 4], eax
imul edx, eax, 0x7fffffff
call fcn.0043dbd2
pop edi
pop esi
leave
ret
Function at 0x44ed94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
je 0x44eeb0
push ebx
push edi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c9b54
mov ebx, str.ADVAPI32.DLL
mov edi, eax
push ebx
call fcn.00499e07
pop ecx
pop ecx
test eax, eax
je 0x44ede9
test edi, edi
je 0x44ede0
push 8
jmp 0x44ee04
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44ee10
test edi, edi
je 0x44ee17
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44ee17
push 0x800
push esi
push ebx
mov ecx, edi
call dword [0x4a4360]
call edi
mov esi, eax
jmp 0x44eeac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 8], eax
test eax, eax
je 0x44eeac
lea ecx, [eax + 0xd]
push ecx
call fcn.0047b2a0
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x44eea5
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44eea2
mov ecx, dword [ebp - 4]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x44ee54
sub edx, dword [ebp - 8]
push 0x5c
pop eax
mov word [edx + ecx], ax
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x44ee6d
sub edx, dword [ebp - 8]
sub edx, ebx
add edx, ecx
mov al, byte [ebx]
mov byte [edx + ebx], al
inc ebx
test al, al
jne 0x44ee7b
test edi, edi
je 0x44ee99
push 8
push esi
push ecx
mov ecx, edi
call dword [0x4a4360]
call edi
jmp 0x44eea0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046f270
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x453b75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x453f0f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x453f24
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x453f36
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00454440
push 0x4d780c
lea eax, [ebp - 0x10]
push eax
call fcn.0046a3fc
int3
Function at 0x45e5cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x4a3003
call fcn.00451fe8
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], SysStringLen
mov dword [edi + 0x18], ebx
mov dword [edi + 0x38], ebx
call fcn.0045c36b
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
test dword [0x4db0b4], 0x80000000
je 0x45e63d
push dword [0x4de83c]
call fcn.00453f5c
pop ecx
test eax, eax
jne 0x45e642
call fcn.00459831
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x45e65d
cmp eax, 2
je 0x45e65d
lock inc dword [eax + 4]
mov ecx, edi
call fcn.0045f242
lea ecx, [edi + 0x3c]
call fcn.0045cd3c
cmp byte [ebp + 0xc], 0
je 0x45e69e
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x45e698
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x45e687
jmp 0x45e6a6
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.00459a2d
mov esi, eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x45e6be
mov ecx, esi
call fcn.0045db0a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.00451fb0
ret 8
Function at 0x466b5c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4de8ac], eax
cmp eax, 0xffffffff
je 0x466b76
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x466b88
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00454440
push 0x4d780c
lea eax, [ebp - 0x10]
push eax
call fcn.0046a3fc
int3

Function at 0x488b66
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004886b3

Function at 0x4967f0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x4968a4
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebp
push ebp
call esi
mov ecx, edi
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496813
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebx]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x496840
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
push ebp
call esi
mov esi, eax
cmp word [ebp + esi*2 - 2], 0x5c
je 0x496859
mov eax, 0x5c
mov word [ebp + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496860
sub ecx, ebx
sar ecx, 1
je 0x4968a4
lea esi, [esi*2]
add esi, ebp
nop word [eax + eax]
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496891
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x496880
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x4968b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
push dword [esp + 0x10]
call fcn.00497c30
mov esi, eax
add esp, 8
test esi, esi
je 0x4968f7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4968db
test al, 0x50
jne 0x4968db
mov eax, esi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4968ee
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
Function at 0x497660
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x4db068]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0xc], ecx
xor esi, esi
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x4e1098], ebx
jne 0x497709
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x4e1098], 0x11c
push 0x4e1098
mov dword [0x4e109c], 6
mov dword [0x4e10a0], 1
mov word [0x4e11ac], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [0x4dba9c], eax
jmp 0x49770e
mov eax, dword [0x4dba9c]
test eax, eax
je 0x497729
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00451f9f
add esp, 0x18
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x49787d
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x49787d
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x49787d
push 0
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x49787d
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
nop word [eax + eax]
mov eax, dword [esp + ebp*4 + 0x18]
cmp eax, 0x26
jne 0x49789b
push 0
push 0
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x497877
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x497877
push edi
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x497877
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x497817
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call edi
push 0x4b6b58
push 0x26
call fcn.004966a0
mov esi, eax
add esp, 8
test esi, esi
je 0x497877
jmp 0x497834
cmp word [esi + edi*2 - 4], 0x5c
je 0x49782e
push 0x4b6b54
lea eax, [edi + 1]
push eax
push esi
call fcn.00497ef0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x497840
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [esp + 0x18]
call fcn.00474328
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
jne 0x497877
push esi
call edi
inc ebp
xor esi, esi
cmp ebp, 3
jl 0x497790
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call ebp
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00451f9f
add esp, 0x18
ret
push 0x4b6b58
push eax
jmp 0x497807
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x778370
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 0x77838e
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 0x7a1074
push ecx
mov edi, eax
call fcn.0078c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7783cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0078c02e
push esi
call fcn.0078bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x77b850
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 0x77b8ae
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 0x7a6720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x77b8ba
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.0078c1e1
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 0x77b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7a6720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x77b92a
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.0078d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x77b957
mov word [eax], si
add eax, 2
push eax
call fcn.0078d030
add esp, 4
jmp 0x77b959
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 0x77b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x77b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x77c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7a1458
push ecx
call fcn.0078c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0078c1e1
add esp, 0x10
jmp 0x77c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0078c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0078bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0077c050
mov eax, dword [0x7a6728]
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 0x77c13b
push esi
call fcn.0077bfb0
add esp, 4
mov dword [0x7a6728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x77c14c
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.0077bff0
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 0x77f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x77f4b7
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 0x77f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x77f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x77f47e
add edx, ecx
cmp ebx, edx
jb 0x77f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x77f467
xor ecx, ecx
jmp 0x77f4a2
test eax, eax
jne 0x77f492
xor ecx, ecx
jmp 0x77f4a2
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.0077f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x77f8f0
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 0x77f921
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 0x77f946
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 0x77f96e
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 0x77f993
push ecx
push esi
call fcn.0077f4c0
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