joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aeac0
Capabilities:
Read file on windows

Disassembly:
cmp byte [0x51b848], 0
je 0x4aeace
xor eax, eax
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [0x54a6dc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
push ecx
call fcn.004bbe1b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4aeb9e
test esi, esi
je 0x4aeb9e
mov edx, dword [0x54aae0]
push ebx
push esi
push edi
push edx
call fcn.00422180
mov ecx, dword [0x54a6c8]
mov dword [0x54aae0], eax
mov eax, dword [0x54a6cc]
xor edi, edi
mov ebx, ecx
add ecx, esi
mov edx, eax
adc eax, edi
cmp eax, edx
mov dword [0x54a6c8], ecx
mov dword [0x54a6cc], eax
jg 0x4aeb41
jl 0x4aeb3a
cmp ecx, ebx
jae 0x4aeb41
push 6
call fcn.004a68a0
mov eax, dword [0x54a6a0]
mov ecx, dword [0x54a6a4]
mov edx, dword [0x54aaf0]
mov ebx, dword [0x54aaf4]
add eax, esi
adc ecx, edi
add edx, esi
adc ebx, edi
mov edi, dword [0x54a6ac]
push edi
mov edi, dword [0x54a6a8]
push edi
push ecx
push eax
mov dword [0x54a6a0], eax
mov eax, dword [0x54aaec]
push eax
mov dword [0x54a6a4], ecx
mov ecx, dword [0x54aae8]
push ecx
push ebx
push edx
mov dword [0x54aaf0], edx
mov dword [0x54aaf4], ebx
call fcn.00409f20
mov eax, esi
pop ebx
pop edi
pop esi
ret 8
Function at 0x4af6f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af719
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4af719
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.00466860
push eax
mov eax, dword [0x507344]
push eax
call fcn.00499dd0
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4affec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d98f0]
jne 0x4afff6
repz ret
jmp fcn.004b6eec

Function at 0x4bf565
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.004b6827
and dword [ebp - 4], 0
cmp dword [0x54b8b0], 0
mov ebx, eax
jne 0x4bf616
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4bf6c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4bf6c7
push eax
call fcn.004b67b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54b8b0], eax
call esi
push eax
call fcn.004b67b5
mov dword [esp], 0x4cf878
push edi
mov dword [0x54b8b4], eax
call esi
push eax
call fcn.004b67b5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54b8b8], eax
call esi
push eax
call fcn.004b67b5
pop ecx
mov dword [0x54b8c0], eax
test eax, eax
je 0x4bf616
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b67b5
pop ecx
mov dword [0x54b8bc], eax
mov eax, dword [0x54b8bc]
cmp eax, ebx
je 0x4bf66e
cmp dword [0x54b8c0], ebx
je 0x4bf66e
push eax
call fcn.004b6830
push dword [0x54b8c0]
mov esi, eax
call fcn.004b6830
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4bf66e
test edi, edi
je 0x4bf66e
call esi
test eax, eax
je 0x4bf665
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bf665
test byte [ebp - 0xc], 1
jne 0x4bf66e
or dword [ebp + 0x10], 0x200000
jmp 0x4bf6a7
mov eax, dword [0x54b8b4]
cmp eax, ebx
je 0x4bf6a7
push eax
call fcn.004b6830
pop ecx
test eax, eax
je 0x4bf6a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4bf6a7
mov eax, dword [0x54b8b8]
cmp eax, ebx
je 0x4bf6a7
push eax
call fcn.004b6830
pop ecx
test eax, eax
je 0x4bf6a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54b8b0]
call fcn.004b6830
pop ecx
test eax, eax
je 0x4bf6c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bf6c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f6d
Capabilities:
Terminate process

Disassembly:
push 0x16c
mov eax, 0x4bc1e5
call fcn.004991ba
mov edi, ecx
push dword [edi + 4]
lea esi, [edi + 0xb4]
mov eax, esi
call fcn.00461d3c
lea eax, [ebp - 0x158]
call fcn.004680f7
xor eax, eax
push eax
push esi
push eax
mov dword [ebp - 4], eax
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x15c], esp
call fcn.00468115
push eax
mov eax, esi
call fcn.004644cb
lea eax, [edi + 0x10]
push eax
mov ecx, esi
call fcn.00464e0d
call fcn.0045db82
push str.lblTitle
mov eax, esi
call fcn.00466532
mov ebx, eax
mov esi, dword [ebx]
mov eax, dword [edi]
mov ecx, edi
add esi, 0x3c
call dword [eax + 0x20]
push eax
mov ecx, ebx
call dword [esi]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test eax, eax
jne 0x403009
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push eax
lea ecx, [ebp - 0x178]
call fcn.00403461
mov byte [ebp - 4], 1
push dword [edi + 4]
add edi, 0x14
lea ecx, [ebp - 0x178]
call fcn.004024e7
push 0
push 1
lea ecx, [ebp - 0x178]
call fcn.00403db0
lea esi, [ebp - 0x158]
call fcn.0045cfe9
xor eax, eax
call fcn.0049923d
ret
Function at 0x4069ac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6cb3
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.004a3980
mov eax, dword [0x4e8070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
mov edi, ecx
push eax
mov dword [ebp - 0x1048], edi
mov dword [ebp - 0x1054], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x104c], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x406a18
cmp esi, 0xffffffff
jne 0x406a36
push 0x4c102f
mov ecx, edi
call fcn.00403461
lea eax, [ebp - 0x104c]
call fcn.0040681e
mov eax, edi
jmp 0x406ac3
lea eax, [ebp - 0x1054]
push eax
push esi
mov dword [ebp - 0x1054], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x100f
lea eax, [ebp - 0x1043]
push ebx
push eax
mov dword [ebp - 0x1058], edi
mov byte [ebp - 0x1044], bl
call fcn.00499dd0
add esp, 0xc
lea eax, [ebp - 0x1050]
push ebx
push eax
mov dword [ebp - 0x1050], ebx
lea eax, [ebp - 0x1044]
cmp edi, 0x1000
ja 0x406add
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406aa2
cmp dword [ebp - 0x1050], edi
je 0x406b30
mov ecx, dword [ebp - 0x1048]
push 0x4c102f
call fcn.00403461
lea eax, [ebp - 0x104c]
call fcn.0040681e
mov eax, dword [ebp - 0x1048]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049795f
leave
ret
mov edi, 0x800
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x406aa2
cmp dword [ebp - 0x1050], edi
jne 0x406aa2
mov eax, dword [ebp - 0x1058]
push ebx
push ebx
add eax, 0xfffff800
push eax
push dword [ebp - 0x104c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1050]
push eax
push edi
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x104c]
call esi
jmp 0x406a92
push 7
pop ecx
push dword [ebp - 0x1058]
xor eax, eax
push dword [ebp - 0x1054]
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push str._08x_08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1074]
push 0x1010
push eax
lea ecx, [ebp - 0x1044]
movsd dword es:[edi], dword [esi]
call fcn.0044e4b7
add esp, 0x18
mov esi, dword [ebp - 0x1048]
push 0x20
push 0xa
push eax
mov byte [ebp - 4], 1
call fcn.0040c494
push ebx
push 1
lea ecx, [ebp - 0x1074]
call fcn.00403db0
lea eax, [ebp - 0x104c]
call fcn.0040681e
mov eax, esi
jmp 0x406ac3
Function at 0x4077a5
Capabilities:
Delete registry value

Disassembly:
push 0x100
mov eax, 0x4ba2db
call fcn.004991ba
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
push ecx
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ecx
mov edi, edx
call fcn.0042fb96
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], eax
jne 0x4077f0
push eax
push 1
call fcn.00403ead
xor eax, eax
call fcn.0049923d
ret
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00401298
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x34], 1
call fcn.004336de
push 3
pop esi
push edi
push dword [ebp - 0x3c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x34], esi
call fcn.00433742
test al, al
je 0x407865
cmp byte [edi + 8], 7
jne 0x407865
push str.state:1__caseId:__time:__type:__reason:
lea ecx, [ebp - 0x5c]
call fcn.00403461
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], esi
push edi
mov dword [ebp - 0x34], 7
call fcn.0040172f
pop ecx
pop ecx
mov byte [ebp - 0x2d], 0
test al, al
jne 0x407869
mov byte [ebp - 0x2d], 1
test byte [ebp - 0x34], 4
je 0x40787f
and dword [ebp - 0x34], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.00403db0
test byte [ebp - 0x34], 2
je 0x407894
and dword [ebp - 0x34], 0xfffffffd
lea eax, [ebp - 0x10c]
call fcn.00401f6b
test byte [ebp - 0x34], 1
je 0x4078a6
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00403db0
cmp byte [ebp - 0x2d], 0
je 0x4078ce
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor edi, edi
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
mov eax, edi
jmp 0x4077ea
xor edi, edi
inc edi
jmp 0x4078bb
Function at 0x4078d3
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x4b6c82
call fcn.00499151
push dword [ebp + 0xc]
mov esi, str.attachment
mov edx, esi
call fcn.00437a7b
cmp byte [eax + 8], 4
jne 0x4079ad
push dword [ebp + 0xc]
mov edx, 0x4c1a54
call fcn.00437a7b
cmp byte [eax + 8], 4
jne 0x4079ad
lea eax, [ebp - 0x48]
push eax
push ecx
push dword [ebp + 0xc]
mov edx, esi
call fcn.00437a7b
pop ecx
push eax
call fcn.00436d1d
xor ebx, ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401215
pop ecx
push 0xffffffffffffffff
push ebx
push edi
mov byte [ebp - 4], 1
call fcn.00403dfb
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403db0
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x407968
mov eax, dword [esi]
jmp 0x40796a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4079b5
push 0x3e9
lea eax, [ebp - 0x48]
call fcn.004072a8
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40798e
mov eax, dword [eax + 4]
jmp 0x407991
add eax, 4
push 0x10
push 0x4c13cc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00403ead
xor eax, eax
call fcn.00499229
ret
cmp dword [edi + 0x18], 8
jb 0x4079bd
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0044e42f
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x48]
push eax
push ecx
push dword [ebp + 0xc]
mov edx, 0x4c1a54
mov dword [ebp - 4], 2
call fcn.00437a7b
pop ecx
push eax
call fcn.00436d1d
push esi
push eax
mov byte [ebp - 4], 3
call fcn.0040cc87
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 0xd], al
call fcn.00403db0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403db0
cmp byte [ebp - 0xd], bl
je 0x407a52
push 0x3ea
lea eax, [ebp - 0x64]
call fcn.004072a8
cmp dword [eax + 0x18], 8
pop ecx
jb 0x407a34
mov eax, dword [eax + 4]
jmp 0x407a37
add eax, 4
push 0x10
push 0x4c13cc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push esi
lea esi, [ebp - 0x64]
jmp 0x4079a8
mov eax, esi
jmp 0x4079af
Function at 0x40cebe
Capabilities:
Delete registry value

Disassembly:
push ebp
sub esp, 0x70
push 0xe0
mov eax, 0x4b5414
call fcn.00499151
xor ebx, ebx
cmp dword [ebp + 0x7c], ebx
je 0x40cfea
push dword [ebp + 0x7c]
lea esi, [ebp + 0x38]
call fcn.004034c9
push str.PeriodDecQuotaRecord
lea esi, [ebp + 0x54]
mov dword [ebp - 4], ebx
call fcn.004034c9
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00401298
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.0044e115
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.00401215
mov esi, eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 4
call fcn.00401298
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.0044e115
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00401215
add esp, 0x28
cmp dword [esi + 0x18], 8
jb 0x40cf65
mov esi, dword [esi + 4]
jmp 0x40cf68
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x40cf73
mov eax, dword [eax + 4]
jmp 0x40cf76
add eax, 4
push eax
push str.Softwareprojonepodlp_smpcache_
mov edi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042fb06
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x60]
mov dword [ebp + 0x70], eax
call fcn.00403ead
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.00403db0
push ebx
push edi
lea ecx, [ebp]
call fcn.00403db0
push ebx
push edi
lea esi, [ebp - 0xd0]
call fcn.00403ead
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403db0
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.00403db0
push ebx
push edi
lea esi, [ebp + 0x54]
call fcn.00403ead
push ebx
push edi
lea esi, [ebp + 0x38]
call fcn.00403ead
mov eax, dword [ebp + 0x70]
jmp 0x40d088
push str.PeriodDecQuotaRecord
lea esi, [ebp + 0x1c]
call fcn.004034c9
mov eax, esi
push eax
lea eax, [ebp - 0xec]
push eax
mov dword [ebp - 4], 7
call fcn.00401298
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 8
call fcn.0044e115
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 9
call fcn.00401215
add esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x40d039
mov eax, dword [eax + 4]
jmp 0x40d03c
add eax, 4
push eax
push str.Softwareprojonepodlp_smpcache_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, eax
neg edi
push ebx
sbb edi, edi
push 1
lea esi, [ebp - 0x7c]
inc edi
call fcn.00403ead
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.00403db0
push ebx
push 1
lea ecx, [ebp - 0xec]
call fcn.00403db0
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00403ead
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x40d196
Capabilities:
Delete registry value

Disassembly:
push 0x70
mov eax, 0x4b534a
call fcn.00499151
push str.PeriodDecQuotaRecord
lea esi, [ebp - 0x28]
call fcn.004034c9
mov eax, esi
push eax
lea eax, [ebp - 0x7c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00401298
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.0044e115
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401215
add esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x40d1e9
mov eax, dword [eax + 4]
jmp 0x40d1ec
add eax, 4
push eax
push str.Softwareprojonepodlp_smpcache_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push 1
lea esi, [ebp - 0x44]
call fcn.00403ead
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.00403db0
push edi
push 1
lea ecx, [ebp - 0x7c]
call fcn.00403db0
push edi
push 1
lea esi, [ebp - 0x28]
call fcn.00403ead
call fcn.00499229
ret

Function at 0x40e264
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e8070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, esi
call fcn.00410485
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x40e2cf
mov al, bl
add al, 0x61
mov byte [ebp - 0xc], al
xor eax, eax
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
lea edi, [ebp - 9]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40e2cf
mov al, bl
add al, 0x41
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
push esi
lea edi, [ebp - 0x20]
call fcn.004103c9
inc ebx
cmp ebx, 0x1a
jl 0x40e288
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049795f
leave
ret
Function at 0x40f9a8
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4e8070]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
mov ebx, dword [ebp + 0x1f0]
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x24], ax
xor esi, esi
lea eax, [ebp - 0x22]
push esi
push eax
mov edi, ecx
call fcn.00499dd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x4c2bbc
lea ecx, [ebp - 0x40]
call fcn.0042f9b3
push 0x38
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], 0x3c
call fcn.00499dd0
lea eax, [ebp - 0x24]
add esp, 0x14
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x3c]
jae 0x40fa2e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x74], 0x4c1b9c
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40fa8e
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x44], 1
push esi
setne al
push 1
lea esi, [ebp - 0x40]
mov edi, eax
call fcn.00403ead
mov eax, edi
jmp 0x40faaf
push 0x10
push 0x4c13cc
push 0x4c2be4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push 1
lea esi, [ebp - 0x40]
call fcn.00403ead
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049795f
add ebp, 0x1e8
leave
ret
Function at 0x412a54
Capabilities:
Get graphical window text

Disassembly:
push 0x108
mov eax, 0x4bccdd
call fcn.004991ba
mov ebx, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], edi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x412ae3
cmp dword [ebx + 0x50], edi
jne 0x412c9d
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0xd
push edi
push esi
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 4], edi
call fcn.00411e31
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
push edi
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebx]
push 0x530
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [ebp - 0xb0]
call fcn.00413161
jmp 0x412c9d
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 1
cmp dword [ebx + 0x4c], 3
jne 0x412b90
call fcn.0042dd90
push eax
push str._08x
lea esi, [ebp - 0x64]
call fcn.0042fa11
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.0042dd90
push eax
call fcn.0042dd90
push eax
push str._08x_08x
lea esi, [ebp - 0x2c]
call fcn.0042fa11
add esp, 0xc
lea edi, [ebp - 0xc0]
call fcn.0040db34
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x110]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x64]
push eax
mov edx, ecx
mov byte [ebp - 4], 4
call fcn.004517f8
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x114], eax
call fcn.0040db50
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403db0
push 0
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403db0
jmp 0x412bc8
lea edi, [ebp - 0xc0]
call fcn.0040db34
lea ecx, [ebp - 0x48]
push ecx
push eax
push esi
mov edx, 0x4c3314
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00451c73
add esp, 0xc
mov esi, edi
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
call fcn.0040db50
xor edi, edi
inc edi
cmp dword [ebp - 0x114], 0
push dword [ebp - 0x110]
jne 0x412bf1
lea esi, [ebp - 0x2c]
call fcn.004034c9
mov eax, esi
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x10c], edi
lea eax, [ebx + 4]
jmp 0x412c10
lea esi, [ebp - 0x64]
call fcn.004034c9
mov eax, esi
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x10c], 2
lea eax, [ebx + 0x1c]
call fcn.0041317b
test byte [ebp - 0x10c], 2
je 0x412c30
and dword [ebp - 0x10c], 0xfffffffd
push 0
push edi
lea esi, [ebp - 0x64]
call fcn.00403ead
mov dword [ebp - 4], edi
test byte [ebp - 0x10c], 1
je 0x412c47
push 0
push edi
lea esi, [ebp - 0x2c]
call fcn.00403ead
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push dword [ebx + 0x50]
push dword [ebp - 0x110]
push eax
call fcn.00411e31
push 0
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebx]
push 0x530
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [ebp - 0x108]
call fcn.00413161
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00403ead
call fcn.0049923d
ret
Function at 0x414548
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push 8
mov esi, eax
pop edi
cmp dword [esi + 0x6a8], edi
jb 0x41455f
mov eax, dword [esi + 0x694]
jmp 0x414565
lea eax, [esi + 0x694]
test eax, eax
je 0x414599
cmp dword [esi + 0x6a8], edi
jb 0x414579
mov eax, dword [esi + 0x694]
jmp 0x41457f
lea eax, [esi + 0x694]
push 0x4c3414
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x414599
mov eax, 0x4c3488
jmp 0x41478e
cmp dword [esi + 0x6a8], edi
jb 0x4145a9
mov eax, dword [esi + 0x694]
jmp 0x4145af
lea eax, [esi + 0x694]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4145c9
test al, 0x10
je 0x4145c9
mov eax, str.folder.png
jmp 0x41478e
cmp dword [esi + 0x6a8], edi
jb 0x4145d9
mov esi, dword [esi + 0x694]
jmp 0x4145df
add esi, 0x694
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x414788
cmp word [edi], 0
je 0x414788
inc edi
inc edi
je 0x414788
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4c34b0
push edi
call esi
test eax, eax
je 0x414645
push 0x4c34b8
push edi
call esi
test eax, eax
je 0x414645
push 0x4c34c0
push edi
call esi
test eax, eax
je 0x414645
push 0x4c34c8
push edi
call esi
test eax, eax
je 0x414645
push str.jpeg
push edi
call esi
test eax, eax
jne 0x41464f
mov eax, str.image.png
jmp 0x41478d
push 0x4c34f0
push edi
call esi
test eax, eax
jne 0x414665
mov eax, str.pdf.png
jmp 0x41478d
push 0x4c3508
push edi
call esi
test eax, eax
je 0x414689
push str.pptx
push edi
call esi
test eax, eax
je 0x414689
push 0x4c351c
push edi
call esi
test eax, eax
jne 0x414693
mov eax, str.ppt.png
jmp 0x41478d
push 0x4c3534
push edi
call esi
test eax, eax
je 0x4146b7
push str.xlsx
push edi
call esi
test eax, eax
je 0x4146b7
push 0x4c3548
push edi
call esi
test eax, eax
jne 0x4146c1
mov eax, str.xls.png
jmp 0x41478d
push 0x4c3560
push edi
call esi
test eax, eax
je 0x4146e5
push str.docx
push edi
call esi
test eax, eax
je 0x4146e5
push 0x4c3574
push edi
call esi
test eax, eax
jne 0x4146ef
mov eax, str.doc.png
jmp 0x41478d
push 0x4c358c
push edi
call esi
test eax, eax
jne 0x414705
mov eax, str.txt.png
jmp 0x41478d
push 0x4c35a4
push edi
call esi
test eax, eax
je 0x41474d
push 0x4c35ac
push edi
call esi
test eax, eax
je 0x41474d
push 0x4c35b0
push edi
call esi
test eax, eax
je 0x41474d
push 0x4c35bc
push edi
call esi
test eax, eax
je 0x41474d
push 0x4c35c0
push edi
call esi
test eax, eax
je 0x41474d
push 0x4c35c8
push edi
call esi
test eax, eax
jne 0x414754
mov eax, str.code.png
jmp 0x41478d
push 0x4c35e4
push edi
call esi
test eax, eax
je 0x414781
mov ebx, 0x4c35ec
push ebx
push edi
call esi
test eax, eax
je 0x414781
push 0x4c35f4
push edi
call esi
test eax, eax
je 0x414781
push ebx
push edi
call esi
test eax, eax
jne 0x414788
mov eax, str.archive.png
jmp 0x41478d
mov eax, str.unknown.png
pop ebx
pop edi
pop esi
ret