joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1002f05a
pop dword [ebp - 0x44]
mov eax, 0x34352fce
sub eax, 0x24323f74
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3e4aa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4f4b151b
add ecx, 0xb0b52575
mov edx, eax
mov ebx, 0x10055c00
add ebx, dword [ebp - 0x44]
mov esi, 0xf46d660d
add dword [ebp - 0x28], 0x48849efc
mov edi, dword [ebx]
add dword [ebp - 0x34], 0x911eb70c
xor edi, esi
sub dword [ebp - 0xc], ecx
mov dword [edx], edi
sub dword [ebp - 0x40], ecx
add edx, 4
add ebx, 4
loop 0x1002f0a8
add eax, 0x80c8297d
add eax, 0x7f38b396
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb2cfbf13
sub ecx, 0xa2cfbf13
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4032ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4497c9], 0
jne 0x4032cb
call fcn.00402992
cmp byte [0x4497ca], 0
je 0x4032da
pop ebp
jmp fcn.00402b31
xor eax, eax
pop ebp
ret

Function at 0x40414d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00405689
pop ecx
test eax, eax
je 0x404188
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404188
push 0x186a0
push esi
push 2
call fcn.00403273
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4042b9
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0x218
mov eax, 0x434535
call fcn.0041aab0
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
mov edi, dword [ebp + 0xc]
push str.BackupArmExe...
call fcn.004020dd
xor esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00403273
mov ecx, dword [ebp - 0x220]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40433a
push eax
push str.Self_Update_Init_Error
push 0x436f68
push str.SHGetFolderPath_failed
call fcn.00407ae6
add esp, 0x10
jmp 0x4043f3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004020dd
push str.AdobeARM1.0Backup
mov dword [ebp - 4], 1
call fcn.0041fc6e
pop ecx
push eax
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x21c]
call fcn.00402366
push esi
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x4043c8
cmp eax, 3
je 0x4043c8
push str.AdobeARM.exe
call fcn.0041fc6e
pop ecx
push eax
push str.AdobeARM.exe
lea ecx, [ebp - 0x21c]
call fcn.00402366
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004021f9
push esi
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4043f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Self_Update_Init_Error
push dword [ebp - 0x21c]
push str.Failed_arm_backup_folder:
call fcn.00407ae6
mov esi, eax
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa5a
ret
push str.success_backup
lea ecx, [ebp - 0x224]
call fcn.004020dd
push esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
push 2
call fcn.00403273
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
jmp 0x4043e3
Function at 0x404fed
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405018
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret

Function at 0x4055af
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x43490b
call fcn.0041aa7c
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call fcn.004039ea
mov edi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x14], ebx
inc ebx
pop ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call sub.PSAPI.DLL_EnumProcesses
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x405633
cmp dword [ebp - 0x14], ecx
jb 0x405629
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call fcn.004039ea
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40563c
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x405639
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x4055ef
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40566c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x405669
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call fcn.00403bfa
add edi, 4
sub esi, 1
jne 0x405656
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x405681
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.0040391e
pop ecx
pop ecx
mov eax, ebx
call fcn.0041aa45
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x4056a3
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x434936
call fcn.0041aa7c
call fcn.0040bda9
push eax
lea ecx, [ebp - 0x10]
call fcn.00401320
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.00403333
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004033b5
test edi, edi
jne 0x405712
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021f9
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0041fc6e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402366
xor esi, esi
inc esi
jmp 0x40573d
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020dd
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403273
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa45
ret

Function at 0x405750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4484a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x105
xor esi, esi
push esi
push eax
call fcn.0041bfd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4057d5
lea eax, [ebp - 0x210]
push eax
call fcn.0041fc6e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0040360e
mov esi, str.TempArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
jne 0x405859
mov ecx, edi
call fcn.004025a7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403333
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033b5
test esi, esi
je 0x40585d
push 0x5c
push dword [edi]
call fcn.0041d414
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405839
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405839
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x405839
mov esi, 0x437078
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
mov esi, str.ArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
je 0x40585d
xor eax, eax
jmp 0x405860
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aa34
leave
ret
Function at 0x424608
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417e60
and dword [ebp - 4], 0
cmp dword [0x49491c], 0
mov ebx, eax
jne 0x4246b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42476a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x484de0
push edi
call esi
test eax, eax
je 0x42476a
push eax
call fcn.00417dee
mov dword [esp], 0x484dd0
push edi
mov dword [0x49491c], eax
call esi
push eax
call fcn.00417dee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x494920], eax
call esi
push eax
call fcn.00417dee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x494924], eax
call esi
push eax
call fcn.00417dee
pop ecx
mov dword [0x49492c], eax
test eax, eax
je 0x4246b9
push 0x484d88
push edi
call esi
push eax
call fcn.00417dee
pop ecx
mov dword [0x494928], eax
mov eax, dword [0x494928]
cmp eax, ebx
je 0x424711
cmp dword [0x49492c], ebx
je 0x424711
push eax
call fcn.00417e69
push dword [0x49492c]
mov esi, eax
call fcn.00417e69
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424711
test edi, edi
je 0x424711
call esi
test eax, eax
je 0x424708
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424708
test byte [ebp - 0xc], 1
jne 0x424711
or dword [ebp + 0x10], 0x200000
jmp 0x42474a
mov eax, dword [0x494920]
cmp eax, ebx
je 0x42474a
push eax
call fcn.00417e69
pop ecx
test eax, eax
je 0x42474a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42474a
mov eax, dword [0x494924]
cmp eax, ebx
je 0x42474a
push eax
call fcn.00417e69
pop ecx
test eax, eax
je 0x42474a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49491c]
call fcn.00417e69
pop ecx
test eax, eax
je 0x42476a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42476c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4350bb
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
cmp word [eax], si
je 0x4351e4
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4350fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push 0x483a20
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4350f2
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [ebp], 0
mov eax, dword [esp + 0x44]
jne 0x4351b9
cmp dword [eax], 0
jne 0x4351b9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ebp], ecx
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x40]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4351e8
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4351fa
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
push eax
push 0
mov dword [esi + 0x60], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x435b97
Capabilities:
Create process on windows

Disassembly:
push 0x44
push 0
push 0x4a6d20
call fcn.00414700
push 0x10
push 0
push 0x4a6d0c
call fcn.00414700
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push 0x4a6d0c
push 0x4a6d20
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a6d20], 0x44
mov dword [0x4a6d4c], 1
mov word [0x4a6d50], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x435c0a
mov edx, dword [0x4a6d0c]
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x4566eb
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.004071d0
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
test esi, esi
jl 0x4568ec
mov edi, dword [esp + 0x24]
call fcn.004113d0
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.00401cf0
mov edi, esi
lea eax, [esp + 0x30]
call fcn.004013b0
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.004013b0
push esi
call fcn.00414cd3
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4568ec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4568e1
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.004113d0
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00414cd3
add esp, 4
test esi, esi
jl 0x4568e1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x45683c
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00415497
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.00416f90
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
test esi, esi
jl 0x4568e1
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x456902
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.004071d0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push SysReAllocString
call ebp
test eax, eax
jne 0x456a47
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x456a3c
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00401cf0
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.004013b0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push SysReAllocString
call ebp
test eax, eax
jne 0x456a2a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456a1f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00412ae0
add esp, 8
test eax, eax
jne 0x456a1f
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [sym.imp.ole32.dll_IIDFromString]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x456a3c
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x456949
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret
Function at 0x401920
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4699a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402330
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.004015f0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x401973
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.0043e985
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x4019c2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x487885], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x401a6d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a3b
cmp dword [ebp - 0x7c], 2
jne 0x401a3b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x487885], al
jmp 0x401a40
mov al, byte [0x487885]
test al, al
jne 0x401a61
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x487885], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401aa8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401aa8
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0043e985
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x401ad6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e699
mov esp, ebp
pop ebp
ret
Function at 0x408013
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x408096
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40804b
push 0
push 0
jmp 0x408098
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x408045
lea edi, [eax + 0x40]
push edi
call fcn.0043e3bf
pop ecx
mov dword [esi], eax
test eax, eax
je 0x408045
push edi
push 0
push eax
call fcn.0043e710
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.0043ea60
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.0043e6a8
int3