joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480768
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov ebx, eax
push 0
push 0x90000080
push 2
push 0
push 1
push 0xc0000000
mov eax, ebx
call fcn.00404db0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor eax, eax
push ebp
push 0x4808e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, 0x328
adc edx, 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor eax, eax
push ebp
push 0x4808d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00405908
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, ebx
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xf001f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor eax, eax
push ebp
push 0x4808ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
add eax, ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x328
call fcn.00403328
mov eax, dword [ebp + 8]
mov dword [ebx + 0x320], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x324], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4808c1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
Function at 0x480910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcc8
push ebx
push esi
push edi
mov ebx, eax
push 0
push 0x90000080
push 3
push 0
push 1
push 0xc0000000
mov eax, ebx
call fcn.00404db0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor eax, eax
push ebp
push 0x4809b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 0xfffffcd8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointerEx
call fcn.0040e134
lea eax, [ebp - 0x338]
xor ecx, ecx
mov edx, 0x328
call fcn.00403328
push 0
lea eax, [ebp - 8]
push eax
push 0x328
lea eax, [ebp - 0x338]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
call fcn.0040e134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4809cd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4809d8
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffcc0
mov ebx, eax
push 2
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push 0xfffffcd8
push ebx
call sub.kernel32.dll_SetFilePointerEx
call fcn.0040e134
lea eax, [esp + 0x18]
xor ecx, ecx
mov edx, 0x328
call fcn.00403328
push 0
lea eax, [esp + 4]
push eax
push 0x328
lea eax, [esp + 0x24]
push eax
push ebx
call sub.kernel32.dll_ReadFile
call fcn.0040e134
xor ebx, ebx
mov eax, dword [esp + 0x338]
mov edx, dword [esp + 0x33c]
cmp edx, dword [esp + 0xc]
jne 0x480a49
cmp eax, dword [esp + 8]
ja 0x480b01
jmp 0x480a4f
jg 0x480b01
cmp dword [esp + 0x33c], 0
jne 0x480a69
cmp dword [esp + 0x338], 0
jb 0x480b01
jmp 0x480a6f
jl 0x480b01
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov esi, 0x32
lea ecx, [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp edx, dword [esp + 0xc]
jne 0x480a9b
cmp eax, dword [esp + 8]
ja 0x480b01
jmp 0x480a9d
jg 0x480b01
cmp dword [ecx + 4], 0
jne 0x480aaa
cmp dword [ecx], 0
jae 0x480aac
jmp 0x480b01
jl 0x480b01
mov eax, dword [ecx - 8]
mov edx, dword [ecx - 4]
cmp edx, dword [esp + 0xc]
jne 0x480ac0
cmp eax, dword [esp + 8]
ja 0x480b01
jmp 0x480ac2
jg 0x480b01
cmp dword [ecx - 4], 0
jne 0x480ad0
cmp dword [ecx - 8], 0
jae 0x480ad2
jmp 0x480b01
jl 0x480b01
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
add ecx, 0x10
dec esi
jne 0x480a88
mov eax, dword [esp + 0x338]
mov edx, dword [esp + 0x33c]
cmp edx, dword [esp + 0x14]
jne 0x480b01
cmp eax, dword [esp + 0x10]
jne 0x480b01
mov bl, 1
mov eax, ebx
add esp, 0x340
pop esi
pop ebx
ret

Function at 0x480b0c
Capabilities:
Clear file content

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 0xfffffcd8
push ebx
call sub.kernel32.dll_SetFilePointerEx
call fcn.0040e134
push ebx
call sub.kernel32.dll_SetEndOfFile
call fcn.0040e134
pop ecx
pop edx
pop ebx
ret
Function at 0x480b3c
Capabilities:
Read file on windows

Disassembly:
push ebx
add esp, 0xfffffcc0
mov ebx, eax
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push 0xfffffcd8
push ebx
call sub.kernel32.dll_SetFilePointerEx
call fcn.0040e134
lea eax, [esp + 0x18]
xor ecx, ecx
mov edx, 0x328
call fcn.00403328
push 0
lea eax, [esp + 0xc]
push eax
push 0x328
lea eax, [esp + 0x24]
push eax
push ebx
call sub.kernel32.dll_ReadFile
call fcn.0040e134
mov eax, dword [esp + 0x338]
mov dword [esp], eax
mov eax, dword [esp + 0x33c]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x340
pop ebx
ret

Function at 0x480eec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov esi, eax
mov eax, dword [esi + 0x37c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00405908
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, ebx
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
lea eax, [edi + ebx]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
mov eax, dword [esi + 0x378]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor eax, eax
push ebp
push 0x480f90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0xc]
mov ecx, edi
call fcn.00407688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f97
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
Function at 0x482738
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, edx
mov esi, eax
push esi
push 0xa
push 0
call sub.kernel32.dll_GetModuleHandleA_2
mov ecx, eax
mov dl, 1
mov eax, dword [0x416710]
call fcn.0041aea4
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x482833
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov edx, 0x104
call fcn.00405038
mov edx, dword [ebx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x48278c
sub eax, 4
mov eax, dword [eax]
push edx
push eax
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebx]
call fcn.00404db0
mov esi, eax
push esi
push 0
push 0x482840
push esi
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
setne al
neg al
sbb eax, eax
call fcn.0040e134
mov eax, dword [ebx]
call fcn.00404db0
call fcn.004097c4
mov edx, eax
mov eax, ebx
call fcn.00405038
push 0xffff
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x416590]
call fcn.0041aab4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x482816
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041a89c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48281d
mov eax, dword [ebp - 8]
call fcn.004039ec
ret
Function at 0x4844ec
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x484636
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x88], 1
mov eax, dword [ebx + 0x7c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x484613
mov eax, dword [ebx + 0x7c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fdivr qword [ebx + 0x70]
fstp qword [ebp - 0x10]
wait
fld qword [ebx + 0x70]
fsub qword [ebp - 0x10]
fstp qword [ebx + 0x70]
wait
mov eax, dword [ebx + 0x7c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x484613
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x7c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x54]
call fcn.00404940
fld qword [ebx + 0x70]
fsub qword [ebp - 0x10]
fstp qword [ebx + 0x70]
wait
cmp word [ebx + 0x82], 0
je 0x484594
push ebx
push 0x484298
mov eax, ebx
call fcn.0041eb4c
mov eax, dword [ebx + 0x54]
call fcn.00404db0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x4845e8
test esi, 1
je 0x4845c8
and esi, 0xfffffffe
push esi
mov eax, dword [ebx + 0x54]
call fcn.00404db0
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.0040e134
test esi, 0x10
jne 0x4845e0
mov eax, dword [ebx + 0x54]
call fcn.00404db0
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x4845e8
mov eax, dword [ebx + 0x54]
call fcn.004097ac
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x54]
call fcn.0040d638
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00409554
mov eax, dword [ebp - 4]
call fcn.004097ac
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x48455a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48463d
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404910
lea eax, [ebp - 4]
call fcn.004048ec
ret
Function at 0x484fc8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x485125
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [esi + 0x3d0]
call fcn.00405b9c
mov edi, eax
dec edi
test edi, edi
jl 0x4850fd
inc edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_GetFileSizeEx
call fcn.0040e134
mov eax, dword [0x48dbbc]
mov eax, dword [eax]
mov edx, ebx
call fcn.0047f988
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
cmp edx, dword [ebp - 0xc]
jne 0x485040
cmp eax, dword [ebp - 0x10]
je 0x4850f5
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + ebx*4]
call fcn.00480b3c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x485064
cmp dword [ebp - 0x10], 0
je 0x4850f5
mov eax, dword [0x48dbbc]
mov eax, dword [eax]
mov edx, ebx
call fcn.0047f988
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub dword [esi + 0x3a0], eax
sbb dword [esi + 0x3a4], edx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x3a8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3ac], eax
mov eax, dword [0x48dbbc]
mov eax, dword [eax]
mov edx, ebx
call fcn.0047f988
mov edi, eax
mov eax, dword [edi + 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x48dbbc]
mov eax, dword [eax]
call fcn.0047f99c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [edi + 4]
call fcn.0047cae0
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x3d0]
mov edx, dword [eax + ebx*4]
mov eax, dword [0x48dae4]
call fcn.00481054
mov byte [ebp - 1], 1
jmp 0x4850fd
inc ebx
dec edi
jne 0x485006
cmp byte [ebp - 1], 0
je 0x48510a
mov eax, esi
call fcn.00485ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48512c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404910
ret
Function at 0x485138
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, eax
mov ebp, dword [0x48dbbc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x3d0]
call fcn.00405b9c
mov edi, eax
dec edi
test edi, edi
jl 0x4851fe
inc edi
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_GetFileSizeEx
call fcn.0040e134
mov eax, dword [ebp]
mov edx, ebx
call fcn.0047f988
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
cmp edx, dword [esp + 0x14]
jne 0x4851cd
cmp eax, dword [esp + 0x10]
jne 0x4851cd
mov eax, dword [ebp]
mov edx, ebx
call fcn.0047f988
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add dword [esp], eax
adc dword [esp + 4], edx
jmp 0x4851fa
mov eax, dword [ebp]
mov edx, ebx
call fcn.0047f988
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add dword [esp], eax
adc dword [esp + 4], edx
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + ebx*4]
call fcn.00480b3c
add dword [esp + 8], eax
adc dword [esp + 0xc], edx
inc ebx
dec edi
jne 0x48517f
mov eax, dword [esp]
mov dword [esi + 0x398], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x39c], eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
mov dword [esi + 0x3a0], eax
mov dword [esi + 0x3a4], edx
mov dword [esi + 0x3a8], 0
mov dword [esi + 0x3ac], 0
mov eax, esi
call fcn.00485c34
mov eax, esi
call fcn.00484fc8
test al, al
jne 0x485268
push 0
push 0
push 0x7eb
mov eax, esi
call fcn.0044e2e4
push eax
call sub.user32.dll_PostMessageA
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x485b70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
push ebp
push 0x485c26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
call fcn.00419280
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x485c09
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x485bdf
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00418ce8
push 0
push 0
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485bdf
push ebx
call sub.kernel32.dll_SetEndOfFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
call fcn.00418d00
test al, al
jne 0x485ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485c10
cmp dword [ebp - 8], 0
je 0x485c08
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004039dc
ret
Function at 0xc67370
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 0xc6738e
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 0xc90074
push ecx
mov edi, eax
call fcn.00c7b198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc673cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c7b02e
push esi
call fcn.00c7afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc6a850
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 0xc6a8ae
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 0xc95720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc6a8ba
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.00c7b1e1
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 0xc6a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc95720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc6a92a
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.00c7c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc6a957
mov word [eax], si
add eax, 2
push eax
call fcn.00c7c030
add esp, 4
jmp 0xc6a959
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 0xc6a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc6a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc6b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc90458
push ecx
call fcn.00c7b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c7b1e1
add esp, 0x10
jmp 0xc6b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c7b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c7adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c6b050
mov eax, dword [0xc95728]
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 0xc6b13b
push esi
call fcn.00c6afb0
add esp, 4
mov dword [0xc95728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc6b14c
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.00c6aff0
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 0xc6e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc6e4b7
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 0xc6e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc6e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc6e47e
add edx, ecx
cmp ebx, edx
jb 0xc6e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc6e467
xor ecx, ecx
jmp 0xc6e4a2
test eax, eax
jne 0xc6e492
xor ecx, ecx
jmp 0xc6e4a2
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.00c6e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc6e8f0
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 0xc6e921
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 0xc6e946
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 0xc6e96e
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 0xc6e993
push ecx
push esi
call fcn.00c6e4c0
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 0xc6fc00
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 0xc6fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc6fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc6fc38
add edx, eax
cmp ebx, edx
jb 0xc6fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc6fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc6fc50
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 0xc6fc70
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 0xc6fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc6fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc6fca8
add edx, ecx
cmp ebx, edx
jb 0xc6fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc6fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc6ff60
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.00c7c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc6fffb
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 0xc6ffdd
lea eax, [esp + 0x18]
push eax
jmp 0xc6ffe2
push 0xc95720
call fcn.00c7bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc6ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc6ff40
push 4
push ecx
push eax
call fcn.00c7c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret