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

Disassembly:
push 0x824
mov eax, 0x23908fa8
call fcn.23803221
call fcn.23803257
lea ecx, [ebp - 0x81c]
call fcn.23803c48
mov eax, dword [0x239840f4]
push str.JavaScriptPerms
xor ebx, ebx
push str.FeatureLockdown
mov dword [ebp - 4], ebx
call dword [eax + 0x5c0]
push str.BlackList
push eax
mov eax, dword [0x23984114]
call dword [eax + 0x114]
xor edi, edi
add esp, 0x10
inc edi
push edi
lea ecx, [ebp - 0x81c]
mov esi, eax
call fcn.23802892
push edi
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x81c], esi
call fcn.23802892
lea ecx, [ebp - 0x828]
call fcn.23803c48
mov ax, word [0x2397de1c]
mov ecx, 0xffff
mov byte [ebp - 4], 1
cmp ax, cx
jne 0x23802ff1
mov ecx, 0x2397de1c
call fcn.238022e3
movzx eax, ax
push str.Reader
push eax
mov eax, dword [0x239840b0]
call dword [eax + 0x2c]
pop ecx
push eax
call fcn.23802892
pop ecx
pop ecx
test ax, ax
je 0x23803025
mov eax, dword [0x239827d4]
mov esi, str.SOFTWAREAdobeAcrobat_Reader11.0JavaScriptPerms
call dword [eax + 0xcb8]
test ax, ax
je 0x2380302a
mov esi, str.SOFTWAREAdobeAdobe_Acrobat11.0JavaScriptPerms
lea eax, [ebp - 0x830]
push eax
push edi
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x238030b3
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
push str.tBlackList
push dword [ebp - 0x830]
mov dword [ebp - 0x820], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x238030a7
cmp dword [ebp - 0x814], edi
jne 0x238030a7
push ebx
call fcn.23802892
pop ecx
push eax
push ebx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.23802892
push edi
lea ecx, [ebp - 0x828]
call fcn.23802892
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [ebp - 0x81c]
call fcn.23802892
test eax, eax
jne 0x238030d9
push ebx
push ebx
lea ecx, [ebp - 0x828]
call fcn.23802892
test eax, eax
je 0x23803185
call fcn.238632bf
cmp dword [0x23982638], ebx
jne 0x2380314f
push edi
push 0x14
call fcn.23802892
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x814], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x2380311f
push ecx
mov dword [ebp - 0x820], esp
lea eax, [ebp - 0x829]
mov dword [ebp - 0x820], esp
push eax
mov ecx, esi
call fcn.23818594
mov eax, esi
jmp 0x23803121
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x23982638], eax
cmp eax, ebx
jne 0x2380314f
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], bl
call fcn.23803ba1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.23803ba1
xor eax, eax
jmp 0x238031a4
push ecx
push ecx
lea eax, [ebp - 0x81c]
mov ecx, esp
mov dword [ebp - 0x814], esp
push eax
call fcn.23802892
call fcn.23863099
lea eax, [ebp - 0x828]
mov ecx, esp
mov dword [ebp - 0x814], esp
push eax
call fcn.23802892
call fcn.23863099
pop ecx
pop ecx
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], bl
call fcn.23803ba1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.23803ba1
mov eax, edi
call fcn.238040e1
ret
Function at 0x23855293
Capabilities:
Set registry value

Disassembly:
push 0x19c
mov eax, 0x23911df9
call fcn.23803221
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov esi, ecx
jb 0x238552af
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x9c]
call fcn.23802892
mov edi, eax
xor ebx, ebx
push 0x23921b70
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.23802892
push edi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.23802892
push 0x23921b6c
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.23802892
add esp, 0x18
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x23855300
mov esi, dword [esi]
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.23802892
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.23802892
push ebx
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.23802892
push ebx
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.23802892
push ebx
push esi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.23802892
call fcn.23819efd
test eax, eax
je 0x2385544d
mov dword [ebp - 0x1a4], ebx
lea eax, [ebp - 0x1a4]
push eax
push 0x239219ec
push 4
push ebx
push 0x239219fc
mov byte [ebp - 4], 9
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x23855437
push ecx
mov ecx, dword [ebp - 0x1a4]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], esp
cmp eax, ebx
je 0x238553a6
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
call fcn.238b8e99
mov edi, eax
pop ecx
cmp edi, ebx
je 0x23855437
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x238553c2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x19c]
push 3
mov dword [ebp - 0x1a0], ecx
push eax
lea ecx, [ebp - 0x1a0]
call fcn.23802892
push dword [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1a0], eax
je 0x2385540d
push dword [ebp - 0x1a0]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
movzx ecx, byte [ebp + 0xc]
mov eax, dword [ebp - 0x1a4]
mov edx, dword [eax]
push ecx
push esi
push edi
push eax
call dword [edx + 0x78]
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x8c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1a4]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x23855489
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x23855489
call fcn.23802892
mov esi, eax
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0x1a4], eax
cmp esi, ebx
je 0x23855489
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x2385546e
lea eax, [ebp - 0x2c]
push 4
lea ecx, [ebp - 0x1a4]
push ecx
push 4
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.23802892
call fcn.238040e1
ret
Function at 0x2386d1fc
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x2390a5e3
call fcn.2380155b
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.238d0b4f
xor esi, esi
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR100.dll_memset
push 5
pop eax
push 0x10
mov word [ebp - 0x38], ax
xor edi, edi
lea eax, [ebp - 0x24]
push esi
inc edi
push eax
mov dword [ebp - 0x60], 0x23927c78
mov dword [ebp - 0x3c], edi
call sub.MSVCR100.dll_memset
add esp, 0x28
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x23984114]
push esi
push esi
push 0x10
push edi
push esi
push esi
push dword [ebp - 0x14]
call dword [eax + 0x54]
pop ecx
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
movzx edi, ax
cmp di, si
je 0x2386d285
push dword [ebp - 0x24]
call fcn.23802892
pop ecx
movzx edi, ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.23803ba1
mov ax, di
call fcn.238015dd
ret
Function at 0x4079e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov dword [ebp - 8], esi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
xor ecx, ecx
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x407b13
mov eax, 0x20
lea ebx, [esi + 0xd0]
mov dword [ebp - 4], eax
nop
mov ecx, dword [ebx]
test ecx, ecx
je 0x407ae8
mov dword [ebx], 0
nop dword [eax]
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x407ad0
mov eax, dword [ebp - 4]
add ebx, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x407ac0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x407b0b
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [esi + 0x9c], 0
lea ebx, [esi + eax*8]
mov dword [esi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [esi + 0xa4], 0
mov ecx, ebx
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x58], eax
call fcn.00406600
mov edi, eax
test edi, edi
jne 0x407bf4
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407ba1
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407bf4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407bbe
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407bf4
push ebx
call fcn.004077f0
mov edi, eax
test edi, edi
je 0x407c06
mov dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
mov esi, 0x20
nop dword [eax]
mov ecx, ebx
call fcn.00406680
add ebx, 0x28
sub esi, 1
jne 0x407be0
mov esi, dword [ebp - 8]
test edi, edi
jle 0x407bff
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x407c06
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x407c1f
cmp dword [esi + 0x40], 0
jne 0x407c1f
cmp dword [esi + 0x3c], 0
jne 0x407c1f
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ee0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x98
push 0
mov dword [ebp - 8], edi
lea eax, [edi + 0x110]
push eax
call fcn.0044bbc0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
nop dword [eax + eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x407f80
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
nop word [eax + eax]
movzx eax, word [edi + 0x461360]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop word [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x407fd0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x407fb0
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x407fa3
mov edi, dword [ebp - 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408020
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408010
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408f70
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x46c888]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x409430
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409477
cmp edx, 0x40
je 0x409465
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0044bbc0
add esp, 0xc
mov eax, dword [esi]
lea ebx, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, ebx
push 1
call eax
xor edx, edx
jmp 0x40947a
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0044bbc0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edx, ebx
mov ebx, 4
nop dword [eax + eax]
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4094c0
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret
Function at 0x40aff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4587b4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jbe 0x40b045
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 4]
call fcn.0040b110
test eax, eax
je 0x40b0e4
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x40b027
lea ecx, [ebx + 0x10]
call fcn.00409cc0
push 0x34
call fcn.0044a8ae
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
push 8
mov dword [edi + 4], 0
call fcn.0044a831
mov dword [edi + 4], eax
xor ecx, ecx
mov dword [edi + 8], 0
add esp, 8
mov dword [edi + 0xc], 3
mov word [eax], cx
mov dword [edi + 0x10], ecx
push dword [ebp + 8]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx + 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [eax + edx*4], edi
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
call fcn.0040a4c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x40b045
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bf10
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40bf39
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40bf70
push dword [ebp + 8]
push ebx
push eax
call fcn.0044b640
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40bf70
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c820
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45898d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x46c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x46e2d1], 0
jne 0x40c890
lea ecx, [ebp - 0x24]
call fcn.0040a940
mov esi, eax
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040a940
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0044a6fb
push dword [ebp - 0x24]
call fcn.0044a6fb
add esp, 8
test esi, esi
jmp 0x40c89a
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c8af
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cd60
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46e2d1], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40cd95
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.0044a6fb
add esp, 4
jmp 0x40cd9e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cde9
test bl, 0x10
jne 0x40cde9
test bl, 1
je 0x40cde9
and ebx, 0xfffffffe
cmp byte [0x46e2d1], 0
jne 0x40cddd
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a940
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0044a6fb
add esp, 4
test esi, esi
jmp 0x40cde7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40ce29
cmp byte [0x46e2d1], 0
jne 0x40ce15
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040a940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0044a6fb
add esp, 4
test esi, esi
jmp 0x40ce1e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ce29
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46c008]
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 ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
cmp byte [0x46e2d1], cl
jne 0x40cf4e
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d03d
cmp eax, 0x114
jae 0x40d03d
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor edx, edx
lea ecx, [ebp - 0x360]
test eax, eax
sete dl
push edx
lea edx, [ebp - 0x128]
call fcn.0040ae80
lea eax, [ebp - 0x360]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040a4c0
push dword [ebp - 0x360]
call fcn.0044a6fb
add esp, 4
mov al, 1
jmp 0x40d03f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call esi
mov edi, eax
test edi, edi
je 0x40d03d
cmp edi, 0x114
jae 0x40cf9b
xor eax, eax
mov ecx, ebx
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.0040a450
mov al, 1
jmp 0x40d03f
push 8
call fcn.0044a831
xor ecx, ecx
mov dword [ebp - 0x360], eax
add esp, 4
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 3
mov word [eax], cx
push edi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 1
call fcn.0040ac40
push eax
push edi
call esi
mov ecx, eax
test ecx, ecx
jne 0x40cfe9
push dword [ebp - 0x360]
jmp 0x40d035
mov esi, dword [ebp - 0x360]
xor eax, eax
mov word [esi + edi*2], ax
cmp word [esi], ax
je 0x40d008
nop word [eax + eax]
inc eax
cmp word [esi + eax*2], 0
jne 0x40d000
mov dword [ebp - 0x35c], eax
cmp eax, ecx
jne 0x40d034
lea eax, [edi - 1]
cmp eax, ecx
jne 0x40d034
lea eax, [ebp - 0x360]
mov ecx, ebx
push eax
call fcn.0040a4c0
push esi
call fcn.0044a6fb
add esp, 4
mov al, 1
jmp 0x40d03f
push esi
call fcn.0044a6fb
add esp, 4
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.0044a6ed
mov esp, ebp
pop ebp
ret
Function at 0x40fa40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp byte [0x46e2d1], 0
je 0x40fb05
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jne 0x40fab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.0040ac40
lea ecx, [esi + 1]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi]
cmp esi, eax
cmova esi, eax
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40fae8
nop
inc eax
cmp word [ecx + eax*2], 0
jne 0x40fae0
mov dword [edi + 4], eax
test esi, esi
je 0x40fa99
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
call fcn.0044a831
mov edi, eax
mov dword [ebp - 0x14], 3
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov byte [edi], 0
push dword [ebx]
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jne 0x40fb47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
jmp 0x40fba2
cmp ebx, 3
jbe 0x40fb73
cmp ebx, 0x3ffffffe
ja 0x40fbce
lea eax, [ebx + 1]
push eax
call fcn.0044a831
mov esi, eax
push edi
mov byte [esi], 0
call fcn.0044a6fb
mov edi, esi
mov dword [ebp - 0x14], ebx
add esp, 8
mov dword [ebp - 0x1c], edi
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x10]
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp ebx, eax
cmova ebx, eax
xor eax, eax
mov byte [edi + ebx], 0
cmp byte [edi], al
je 0x40fb99
inc eax
cmp byte [eax + edi], 0
jne 0x40fb92
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40fb3a
mov bl, 1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push 0
call fcn.0040acb0
push edi
call fcn.0044a6fb
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x46a740
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.0044d691
int3