joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d66
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x411008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406e3b
push 0xc
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_memset]
lea eax, [ebp - 0x410]
push eax
call esi
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x404]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406e34
lea esi, [ebp - 0x404]
add esi, dword [ebp - 0x3f4]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
pop ecx
test eax, eax
je 0x406e34
push esi
mov ecx, ebx
call fcn.004071e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x406e3d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409178
leave
ret 4

Function at 0x407814
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
xor edi, edi
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 8], eax
cmp eax, 0x6f
jne 0x407868
test esi, esi
je 0x40784a
push esi
call fcn.004091f3
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x120
push eax
call fcn.004091c7
mov esi, eax
pop ecx
test esi, esi
je 0x4078a1
inc edi
cmp edi, 5
jl 0x407826
mov eax, dword [ebp - 8]
test esi, esi
je 0x4078a1
push esi
test eax, eax
jne 0x40789b
mov ecx, ebx
call fcn.004078aa
mov edi, eax
test edi, edi
je 0x407890
mov ecx, ebx
call fcn.00407cc1
push ecx
mov ecx, ebx
call fcn.00407f35
xor edi, edi
inc edi
push esi
call fcn.004091f3
pop ecx
mov eax, edi
jmp 0x4078a3
call fcn.004091f3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408632
Capabilities:
Hash data with md5

Disassembly:
push esi
push edi
push 0x5c
xor edi, edi
mov esi, ecx
push edi
push esi
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi], 0x67452301
pop edi
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x4052d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4052df
pop dword [ebp - 0x18]
mov eax, 0x4052df
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xf8b35048
add dword [ebp - 0x28], 0x559ef503
mov dword [ebp - 0x24], 0xf4886ba8
add dword [ebp - 0x24], 0x3daae09d
mov dword [ebp - 0x20], 0x9fff3438
sub dword [ebp - 0x20], 0x53b2f00a
mov dword [ebp - 0x1c], 0x9366d963
add dword [ebp - 0x1c], 0x6c99269d
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x19406cfb
add dword [ebp - 0x28], 0x5b31fc5b
mov dword [ebp - 0x24], 0xf394481e
sub dword [ebp - 0x24], 0xb227e6a9
mov dword [ebp - 0x20], 0xe93047cf
add dword [ebp - 0x20], 0x7a3f249d
mov dword [ebp - 0x1c], 0xe1557b99
add dword [ebp - 0x1c], 0x1eaa8467
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d517
push 0
call eax
mov ecx, 0x4e65cdb8
add ecx, 0xb19a8473
xor ebx, ebx
add ebx, eax
mov esi, 0x19b0fe65
sub esi, 0x196f3e65
add esi, dword [ebp - 0x18]
mov edx, 0x578056bb
add edx, 0x150620ac
sub dword [ebp - 4], 0xf14dcd9c
mov edi, dword [esi]
xor dword [ebp - 0x10], edx
add edi, edx
xor dword [ebp - 0xc], 0xc7af76ca
mov dword [ebx], edi
add ebx, 4
add esi, 0x8b7f9cea
add esi, 0x7480631a
loop 0x4053f4
add eax, 0x13b7f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc8d15386
add ecx, 0x376eac7a
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x438769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c190
cmp edx, dword [eax]
je 0x43878b
add eax, 8
inc ecx
cmp eax, 0x43c220
jl 0x43877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c190]
jne 0x4388b9
mov eax, dword [0x43cbb0]
cmp eax, 1
je 0x438893
test eax, eax
jne 0x4387bc
cmp dword [0x43c0e4], 1
je 0x438893
cmp edx, 0xfc
je 0x4388b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4387f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00439670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00439490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x438836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00439490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b45c
push edi
call fcn.00439f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00439670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00439680
lea eax, [ebp - 0xa0]
push 0x43b43c
push eax
call fcn.00439680
push dword [esi + 0x43c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00439680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00439e75
add esp, 0x2c
pop edi
jmp 0x4388b9
lea eax, [ebp + 8]
lea esi, [esi + 0x43c194]
push 0
push eax
push dword [esi]
call fcn.00439490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4022a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4022d5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x402f8b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x402fa3
push dword [esp + 4]
push 0x402f24
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x402fe0
push esi
mov esi, dword [0x40576c]
test esi, esi
je 0x402fdf
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x402fd7
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x40576c
call fcn.0040359a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x402fb0
pop edi
pop ebx
pop esi
ret 4
Function at 0x410c53
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42e058], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
je 0x410dad
cmp dword [0x42ed04], esi
je 0x410dad
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x208
test eax, eax
jne 0x410cc9
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412207
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f446
test eax, eax
jns 0x410cf3
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x410d1c
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412207
add esp, 0xc
push esi
call fcn.00411365
push eax
push str._Logging_started:__S_
push 1
call fcn.00410f0b
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
push 1
call fcn.00410f0b
mov eax, dword [0x42e05c]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410d96
sub eax, 1
je 0x410d8f
sub eax, 1
je 0x410d88
sub eax, 1
jne 0x410d9b
mov edi, str.debug
jmp 0x410d9b
mov edi, str.verbose
jmp 0x410d9b
mov edi, str.standard
jmp 0x410d9b
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410f0b
add esp, 0xc
jmp 0x410db0
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004116b9
mov esp, ebp
pop ebp
ret
Function at 0x414f7d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
loop 0x414fd2
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00414b37
push eax
push esi
push dword [ebp + 8]
call fcn.00414aec
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00414b27
imul dh
xchg byte [ecx - 0x78], bl
popfd
jl 0x414fac
invalid
invalid
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00414b27
push cs
mov ch, 0xb9
adc eax, 0xff7c858d
invalid
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x405b32
pop dword [ebp - 0x20]
mov eax, 0x405b32
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5e7e957e
add dword [ebp - 0x30], 0xefd3afcd
mov dword [ebp - 0x2c], 0xc345d183
sub dword [ebp - 0x2c], 0x9112853e
mov dword [ebp - 0x28], 0xb147ecb1
add dword [ebp - 0x28], 0x9b04577d
mov dword [ebp - 0x24], 0x5967a618
sub dword [ebp - 0x24], 0x5967a618
lea eax, [ebp - 0x30]
push eax
mov eax, 0xbd0bb6fe
sub eax, 0xbccb3686
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xdf5c89da
add dword [ebp - 0x30], 0x9515df7c
mov dword [ebp - 0x2c], 0xaaf0bad4
sub dword [ebp - 0x2c], 0x6984595f
mov dword [ebp - 0x28], 0xc4e94a01
sub dword [ebp - 0x28], 0x6179dd95
mov dword [ebp - 0x24], 0x99e210e9
sub dword [ebp - 0x24], 0x99e210e9
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x35a94
push 0
call eax
mov ecx, 0x429b
mov ebx, eax
mov esi, 0x3f385b96
add esi, 0xc10cb86a
add esi, dword [ebp - 0x20]
mov edi, 0xfda97d3e
add edi, 0xc778e6ea
xor dword [ebp - 8], eax
mov edx, dword [esi]
mov dword [ebp - 0x1c], 0xda119778
sub edx, edi
add dword [ebp - 4], edx
mov dword [ebx], edx
add dword [ebp - 0x18], 0x8f62c1fb
add ebx, 4
add esi, 4
loop 0x405c44
add eax, 0xfd3f
xor ebx, ebx
add ebx, eax
add eax, 0x80e29109
add eax, 0x7f1d6efc
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x84cfc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x429000]
push edi
or ebp, 0xffffffff
jmp 0x84cfe2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x84cfe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84cfd8
mov eax, 1
add ebx, ebx
jne 0x84cffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x84d00c
jne 0x84d02b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d02b
dec eax
add ebx, ebx
jne 0x84d018
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x84cff0
add ebx, ebx
jne 0x84d027
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x84d07d
xor ecx, ecx
sub eax, 3
jb 0x84d043
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x84d0b2
sar eax, 1
mov ebp, eax
jmp 0x84d04e
add ebx, ebx
jne 0x84d04e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d01c
inc ecx
add ebx, ebx
jne 0x84d05c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d01c
add ebx, ebx
jne 0x84d069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x84d05e
jne 0x84d07a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x84d05e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x84d09c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x84d08e
jmp 0x84cfde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x84d09c
add edi, ecx
jmp 0x84cfde
pop esi
mov edi, esi
mov ecx, 0xc2d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x84d0ba
cmp byte [edi], 6
jne 0x84d0ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x84d0bf
lea edi, [esi + 0x44a000]
mov eax, dword [edi]
or eax, eax
je 0x84d12e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x45010c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x450180]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x84d0ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x450188]
or eax, eax
je 0x84d128
mov dword [ebx], eax
add ebx, 4
jmp 0x84d109
call dword [esi + 0x450184]
mov ebp, dword [esi + 0x45018c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x84d162
sub esp, 0xffffff80
jmp 0x40ac10
Function at 0x4055f1
Capabilities:
Get graphical window text
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x405772
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405772
push ebx
push esi
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0
push 0
push 0x859
push dword [ebp + 8]
call esi
push 0
push 0
push 0x7ee
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
xor ecx, ecx
mov dword [ebp - 0x10], eax
push ecx
push ecx
push ecx
push ecx
lea eax, [edi + 1]
mov edi, dword [ebp - 4]
push eax
push ebx
push ecx
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea esi, [eax - 1]
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x4056b2
xor ecx, ecx
lea eax, [esi + 1]
push ecx
push ecx
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esi*2 + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x40575c
xor edx, edx
mov ecx, ebx
mov edi, eax
test esi, esi
jle 0x405733
mov al, byte [ecx]
test al, al
je 0x405730
cmp al, 0xa
je 0x4056ea
cmp al, 0xd
je 0x4056ea
mov byte [edi], al
inc edi
jmp 0x40572a
mov ebx, dword [ebp - 0x10]
lea eax, [edi + 1]
cmp ebx, 1
jne 0x4056fa
mov byte [edi], 0xd
jmp 0x405702
cmp ebx, 2
jne 0x405706
mov byte [edi], 0xa
mov edi, eax
jmp 0x40570f
mov byte [edi], 0xd
mov edi, eax
mov byte [edi], 0xa
inc edi
cmp byte [ecx], 0xd
jne 0x40572a
lea eax, [edx + 1]
cmp eax, esi
jge 0x40572a
lea ebx, [ecx + 1]
cmp byte [ebx], 0xa
mov dword [ebp - 0xc], ebx
jne 0x40572a
mov edx, eax
mov ecx, ebx
inc edx
inc ecx
cmp edx, esi
jl 0x4056d7
mov ebx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
mov byte [edi], 0
call esi
sub edi, dword [ebp - 4]
inc edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [ebp - 4]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
xor eax, eax
leave
ret
Function at 0x40a0e7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x876
push 0
push dword [ebp + 0x10]
push esi
push edi
call ebx
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
push edi
call ebx
mov esi, eax
push esi
call fcn.0040c76f
mov eax, dword [ebp - 4]
pop ecx
cmp esi, eax
je 0x40a128
push eax
call fcn.0040c76f
pop ecx
push 0x32
push 0xd
push 0x962
push edi
call ebx
push 5
push 0xd
mov esi, 0x963
push esi
push edi
call ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x870
push edi
call ebx
push 0x32
push 9
push 0x962
push edi
call ebx
push 0
push 8
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ce0e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
je 0x40ce8e
push str.SetLayeredWindowAttributes
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ceaa
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x5b7cb8
push 0x4b
push str.OpacityLevel
push 0x561bbc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x64
pop ecx
test eax, eax
js 0x40ce73
cmp eax, ecx
jle 0x40ce76
push 0x4b
pop eax
imul eax, eax, 0xff
push 2
cdq
idiv ecx
movzx eax, al
push eax
push 0
push dword [ebp + 8]
call esi
jmp 0x40ceaa
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop esi
pop ebp
ret
Function at 0x40d3c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
mov ebx, 0x104
push edi
mov edi, dword [ebp + 8]
push 0x10
pop eax
cmovne eax, ecx
mov dword [ebp - 0xa34], esi
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x414]
push eax
xor eax, eax
push eax
push eax
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [ebp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x40d4e8
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40d4e8
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x40d4e8
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x40d4e8
push dword [ebp - 0xa30]
lea eax, [ebp - 0x414]
push edi
push 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
je 0x40d4e8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x414]
push 0x561be0
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov esi, dword [ebp - 0xa34]
jmp 0x40d53d
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40d52d
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
test eax, eax
jne 0x40d52d
push dword [ebp - 0xa30]
lea eax, [ebp - 0x61c]
push edi
push 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
jne 0x40d53d
mov ecx, 0x104
lea eax, [ebp - 0x20c]
push ecx
push edi
push eax
call ebx
cmp dword [ebp + 0x18], 0
mov eax, 0x104
push eax
je 0x40d567
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
jne 0x40d577
mov eax, 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call ebx
test esi, esi
je 0x40d597
cmp edi, esi
je 0x40d597
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x824]
push eax
push esi
jmp 0x40d5ad
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x824]
push eax
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret