joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c5a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x450928
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x43c5c7
add eax, 8
inc ecx
cmp eax, 0x4509b8
jb 0x43c5b8
cmp dword [ecx*8 + 0x450928], edx
lea ebx, [ecx*8]
jne 0x43c78b
cmp dword [0x4503d8], 1
je 0x43c747
cmp dword [0x4503d8], 0
jne 0x43c5fe
cmp dword [0x4503dc], 1
je 0x43c747
cmp edx, 0xfc
je 0x43c78b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x43c63b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x43c67f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x448468
push ebp
call fcn.0043ae80
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x448448
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x45092c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004428e0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1dd1b60], 0
je 0x43c75d
mov eax, dword [0x1dd1b60]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x43c767
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x45092c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x43cc10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43cc35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00441be0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x43cc5a
test byte [esp + 8], 2
je 0x43cc5a
mov dword [0x450670], 0xd
mov dword [0x450674], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x43cd30
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x1dd1c60], edx
push ebx
push esi
push edi
push ebp
jbe 0x43cf37
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1dd1b60
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x43cf37
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x43cd99
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x43cdaa
push 2
push 0
push edx
call fcn.0043c7a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x43ce46
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x43ce7f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x43ce0d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x43cdfb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x43cde2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43ce75
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x43cdcd
jmp 0x43ce7f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43ce75
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x43ce7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x43cf26
cmp dword [esp + 0x10], 0
je 0x43ced8
cmp dword [esp + 0x10], 5
jne 0x43cebb
mov dword [0x450670], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x450674], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00441be0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x43cf02
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x43cf02
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x450670], 0x1c
mov dword [0x450674], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x450670], 9
mov dword [0x450674], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x43d650
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0043bc70
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x1dd1c60], esi
jbe 0x43d79d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x1dd1b60]
test byte [edx + ecx*8 + 4], 1
je 0x43d79d
push 1
push ebx
push esi
call fcn.0043c7a0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x43d78d
push 2
push ebx
push esi
call fcn.0043c7a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x43d78d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x43d733
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0043d360
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x43d6f6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0043cd30
add esp, 0xc
cmp eax, 0xffffffff
je 0x43d712
sub ebp, eax
test ebp, ebp
jg 0x43d6eb
jmp 0x43d727
cmp dword [0x450674], 5
jne 0x43d725
mov dword [0x450670], 0xd
mov ebx, eax
push edi
push esi
call fcn.0043d360
add esp, 8
jmp 0x43d770
jge 0x43d770
push 0
push ecx
push esi
call fcn.0043c7a0
add esp, 0xc
push esi
call fcn.0043cbc0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x43d770
mov dword [0x450670], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x450674], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0043c7a0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x450670], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x43e670
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x450aa0], ebx
jne 0x43e6bf
call esi
cmp eax, ebx
mov edi, eax
je 0x43e69d
mov dword [0x450aa0], 1
jmp 0x43e6bf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x43e6b5
mov dword [0x450aa0], 2
jmp 0x43e6bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x450aa0], 1
jne 0x43e76e
test edi, edi
jne 0x43e6e2
call esi
mov edi, eax
test edi, edi
jne 0x43e6e2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x43e6fc
add esi, 2
cmp word [esi], 0
jne 0x43e6ea
add esi, 2
cmp word [esi], 0
jne 0x43e6ea
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x43e75d
push ebp
call fcn.0043ac20
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43e75d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43e74c
push ebx
call fcn.0043abd0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x450aa0], 2
jne 0x43e7f2
test ebx, ebx
jne 0x43e791
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x43e791
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x43e7a6
inc ebp
cmp byte [ebp], 0
jne 0x43e798
inc ebp
cmp byte [ebp], 0
jne 0x43e798
sub ebp, ebx
inc ebp
push ebp
call fcn.0043ac20
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x43e7cb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x444b60
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x444d9e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00443ea0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x444d9e
cmp ebp, dword [esp + 0x18]
je 0x444d9e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x450698]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45069c], ecx
jne 0x444bbd
push ecx
call fcn.00444e10
add esp, 4
mov dword [0x450698], eax
cmp dword [0x450698], 0
jne 0x444c6d
cmp dword [esp + 0x1c], 0
je 0x444bf4
cmp dword [0x4506a0], 0
je 0x444bf4
call fcn.004412b0
test eax, eax
je 0x444c6d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x444c05
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x450698], 0
jne 0x444c39
push 4
call fcn.0043ac20
add esp, 4
mov dword [0x450698], eax
test eax, eax
jne 0x444c2e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x450698]
mov dword [eax], 0
cmp dword [0x4506a0], 0
jne 0x444c6d
push 4
call fcn.0043ac20
add esp, 4
mov dword [0x4506a0], eax
test eax, eax
jne 0x444c62
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4506a0]
mov dword [eax], 0
mov esi, dword [0x450698]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00444db0
add esp, 8
mov edi, eax
test edi, edi
jl 0x444cd5
cmp dword [esi], 0
je 0x444cd5
cmp dword [esp + 0x10], 0
je 0x444ccc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.0043abd0
add esp, 4
cmp dword [ebx], 0
je 0x444cb9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x444caa
shl edi, 2
push edi
push esi
call fcn.0043b950
add esp, 8
test eax, eax
je 0x444d1d
jmp 0x444d18
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x444d1d
cmp dword [esp + 0x10], 0
jne 0x444d94
test edi, edi
jge 0x444ce6
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0043b950
add esp, 8
test eax, eax
jne 0x444d08
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x450698], eax
cmp dword [esp + 0x1c], 0
je 0x444d8a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0043ac20
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x444d8a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0043abd0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x447270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x4472e3
push ebx
call fcn.004473a0
add esp, 4
test eax, eax
jne 0x4472b1
xor eax, eax
pop edi
mov dword [0x450674], 0xf
mov dword [0x450670], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4472f3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x447392
inc eax
cmp eax, 0x104
ja 0x447392
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x447344
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x44731f
mov ecx, eax
push ecx
call fcn.0043ac20
add esp, 4
mov edx, eax
test edx, edx
jne 0x447363
xor eax, eax
pop edi
mov dword [0x450670], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x447363
xor eax, eax
pop edi
mov dword [0x450670], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4473a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x4473b4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4473e6
cmp eax, 1
je 0x4473e6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x4476a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4476d6
cmp byte [esp + 5], 0x3a
jne 0x4476d6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.0043bf60
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x900e460
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x90cf2a5
call fcn.09006dd9
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
push 0x1a
pop esi
push 0x2b
pop eax
cmove esi, eax
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, esi
or eax, 0x8000
cmp byte [ebp + 0xc], bl
push ebx
push ebx
cmovne esi, eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x900e4bc
xor al, al
jmp 0x900e50c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0900e8b2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], ebx
push str.Adobe
call fcn.0900f2c5
test al, al
je 0x900e4ff
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.09037ac3
mov ecx, edi
call fcn.09011cd1
mov bl, al
lea ecx, [ebp - 0x230]
call fcn.09037ac3
mov al, bl
call fcn.09006f96
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x9011cd9
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9011ce8
xor al, al
ret
shr eax, 4
and al, 1
ret

Function at 0x901e790
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov byte [ecx + 0x58], 0
ret
Function at 0x9037ac3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x9037ad2
pop dword [ebp - 0x1c]
mov eax, 0x2b60e7e
add eax, 0x64d6c54
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x38ee3aec
sub dword [ebp - 0x2c], 0xea9bf5a1
mov dword [ebp - 0x28], 0xecf03e28
add dword [ebp - 0x28], 0x45430e1d
mov dword [ebp - 0x24], 0xa379db67
sub dword [ebp - 0x24], 0x572d9739
mov dword [ebp - 0x20], 0xc08ea09b
sub dword [ebp - 0x20], 0xc08ea09b
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9bf54486
add dword [ebp - 0x2c], 0xd87d24d0
mov dword [ebp - 0x28], 0x5b2554a0
add dword [ebp - 0x28], 0xe6470cd5
mov dword [ebp - 0x24], 0xe313c40e
sub dword [ebp - 0x24], 0x7fa457a2
mov dword [ebp - 0x20], 0x62b95adf
add dword [ebp - 0x20], 0x9d46a521
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x866100c6
sub eax, 0x7d53a006
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x77846
push 0
call eax
mov ecx, 0x245ac76
add ecx, 0xfdba99dd
mov edi, eax
mov edx, 0xab10dfcc
sub edx, 0xa1fe83cc
add edx, dword [ebp - 0x1c]
mov esi, 0xc0732b28
mov ebx, dword [edx]
sub dword [ebp - 0x14], 0xd2ad6b75
xor ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x10], eax
add edi, 0xde613f07
sub edi, 0xde613f03
add edx, 0x67bf19d
sub edx, 0x67bf199
loop 0x9037be9
add eax, 0x3745f4b2
sub eax, 0x3744e893
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x81979a72
sub ecx, 0x78979a72
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x90582d8
Capabilities:
Get memory capacity

Disassembly:
push 0x28
mov eax, 0x90d2348
call fcn.0900620a
mov esi, ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
xor edx, edx
sub eax, dword [ebp - 0x20]
sub eax, dword [esi + 8]
sbb edx, dword [esi + 0xc]
js 0x9058343
jg 0x905830d
test eax, eax
jb 0x9058343
mov ecx, dword [esi + 4]
imul edi, ecx, 3
test edx, edx
jg 0x9058343
jl 0x905831d
cmp eax, edi
ja 0x9058343
cmp eax, ecx
jbe 0x9058337
and dword [ebp - 4], 0
sub eax, ecx
mov ecx, dword [esi]
push eax
call fcn.09037ac3
jmp 0x9058343
jae 0x9058343
sub ecx, eax
push ecx
mov ecx, dword [esi]
call fcn.09037ac3
call fcn.09006fcf
ret
Function at 0x9079b47
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x90d3869
call fcn.09006dd9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
xor ebx, ebx
mov esi, 0x20019
push esi
push ebx
push str.SOFTWARE
push 0x80000002
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079ba6
mov dword [ebp - 0x14c], ebx
jmp 0x9079d25
lea eax, [ebp - 0x148]
push eax
push esi
push ebx
push str.Adobe
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079bcf
mov dword [ebp - 0x148], ebx
jmp 0x9079d25
lea eax, [ebp - 0x144]
push eax
push esi
push ebx
push str.Color
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079bf8
mov dword [ebp - 0x144], ebx
jmp 0x9079d25
lea eax, [ebp - 0x13c]
push eax
push esi
push ebx
push str.Monitor
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079c21
mov dword [ebp - 0x13c], ebx
jmp 0x9079d25
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
mov esi, ebx
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9079c73
cmp dword [ebp - 0x154], 4
jne 0x9079c73
mov esi, dword [ebp - 0x120]
cmp esi, 0x3e7
ja 0x9079d25
push esi
push str.Monitor_u
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.09037ac3
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079cb3
mov dword [ebp - 0x140], ebx
jmp 0x9079d3a
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9079d25
cmp dword [ebp - 0x154], 1
jne 0x9079d25
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x138]
call fcn.0901904e
lea eax, [ebp - 0x138]
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
call fcn.09037ac3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.09037ac3
mov bl, 1
cmp dword [ebp - 0x140], 0
je 0x9079d3a
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x13c], 0
je 0x9079d4f
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], 0
je 0x9079d64
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x148], 0
je 0x9079d79
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14c], 0
je 0x9079d8e
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.09006f96
ret