joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4f0433
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004f0070
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004f00d0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004f0190
lea eax, [esp + 0x18]
push eax
call fcn.004efa70
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4f0400
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4f04e4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004f03e0
or ax, ax
je 0x4f04ac
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4f04d0
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4f04d0
lea eax, [esp + 0xa]
push esi
push eax
call fcn.004efb80
or al, al
jne 0x4f04e4
jmp 0x4f04df
lea eax, [esp + 8]
push esi
push eax
call fcn.004efad0
or al, al
jne 0x4f04e4
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x4f04fc
cmp ax, 0xffff
je 0x4f04fc
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x4f0520
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4f0543
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004f0070
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004f00d0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004f0190
lea eax, [esp + 0x18]
push eax
call fcn.004efa70
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4f0510
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4f05f4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004f03e0
or ax, ax
je 0x4f05f4
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x4f05f4
cmp byte [esp + eax + 0xa], 0x3a
jne 0x4f05f4
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.004efad0
or al, al
jne 0x4f05e0
jmp 0x4f05ef
mov ax, word [esi]
cmp ax, 1
jl 0x4f05ef
cmp ax, 6
jle 0x4f05f4
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4f0620
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004f0070
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004f00d0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004f0280
lea eax, [esp + 4]
push 0x10
push eax
call fcn.004f0230
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x4f0610
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x4f068f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004ef8f0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x4f06a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004f0070
lea eax, [esp]
push 0x10
push eax
call fcn.004f00d0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.004f01e0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x4f0710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.004efa90
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004f0070
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004f00d0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.004f0130
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004f02e0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004f0390
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004f0340
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x4f0700
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4f07e3
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.004ef8f0
or al, al
je 0x4f07b1
mov word [esi], 2
jmp 0x4f07e3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.004ef8f0
or al, al
je 0x4f07cb
mov word [esi], 3
jmp 0x4f07e3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004ef8f0
or al, al
je 0x4f07e3
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x4f09d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.004f08d0
or al, al
jne 0x4f0b5a
test byte [edi + 0x1c], 4
je 0x4f0a33
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x4f0ac0
mov dword [ebx + 0xa8], 0
jmp 0x4f0acc
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x4f0ae0
mov dword [ebx + 0xac], 0
jmp 0x4f0ae9
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x4f0b00
cmp word [ebp + 0xe], 0xffff
jne 0x4f0b00
or dword [ebx + 0x2c], 8
jmp 0x4f0b06
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x4f0a40
push esi
call fcn.004f0940
push esi
call fcn.004f0880
push esi
call fcn.004f0840
mov eax, dword [esi + 0x10]
push eax
call fcn.004f1d00
mov word [esi + 0xc], ax
or ax, ax
je 0x4f0b50
lea eax, [esi + 4]
push eax
call fcn.004f1b50
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.004f0810
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4f2c50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.004f0b70
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.004f2780
or al, al
jne 0x4f2cda
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004f3570
or al, al
jne 0x4f2cda
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004f3430
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004f35c0
or di, di
je 0x4f2cda
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4f2d80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.004f0b70
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.004f0b70
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.004f2780
or al, al
jne 0x4f2e63
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004f3570
mov bx, ax
or bl, bl
jne 0x4f2e32
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004f3480
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004f35c0
push esi
call fcn.004f0c80
cmp ax, 0xd
jne 0x4f2e42
mov bx, 0xd
cmp bl, 0xd
je 0x4f2e4d
cmp bx, 3
jne 0x4f2e60
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x4f2dd2
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4f4ac0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4f4b56
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4f4b33
cmp eax, 3
jbe 0x4f4b4b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4f4b40
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x4f4b70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.004f4a60
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x4f4bc0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.004f4a20
or ebx, ebx
je 0x4f4bd2
cmp word [esi + 6], 0xffff
jne 0x4f4bd8
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4f4d00
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.004f4cc0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4f4d70
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4f4d49
cmp eax, 3
jbe 0x4f4d61
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4f4d56
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x4f4d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.004f4a60
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.004f4a20
cmp edi, 1
jne 0x4f4dd5
cmp word [esi + 6], 0xffff
jne 0x4f4ddb
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4f4ec0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x28
push 0
push 0x40bde0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40bde4], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40bde0], eax
call fcn.0040218d
call fcn.00408570
call fcn.00407d50
call fcn.0040776c
call fcn.00407247
call fcn.0040701a
call fcn.00406f3d
call fcn.00406e76
call fcn.00406bd0
call fcn.00404d0c
call fcn.004045b0
call fcn.00403e04
call fcn.004039dd
call fcn.004039c9
call fcn.00403905
call fcn.0040380d
call fcn.00403519
call fcn.00402246
mov dword [0x40bdf0], 0
mov edx, dword [0x40bf20]
push edx
push edx
mov edx, dword [0x40bf20]
push edx
push edx
call fcn.00406f6c
mov edx, dword [0x40b0b4]
add dword [esp], edx
call fcn.00407171
push 0x40bdf4
call fcn.004085f0
call fcn.004011bf
push 0
jmp 0x4010e1
call 0x4010fb
call fcn.004085c0
push dword [0x40bde0]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00402223
call fcn.004034c3
call fcn.0040380c
call fcn.004039bd
call fcn.00403e03
call fcn.00406bf0
call fcn.00406f04
call fcn.0040700e
call fcn.004071f0
call fcn.00407229
call fcn.00407dc5
call fcn.00407d40
ret

Function at 0x4011bf
Capabilities:
Hide graphical window

Disassembly:
push ebx
xor eax, eax
push eax
mov byte [esp], 0xff
push 0x122
push 0xd2
push 0
push 0
call fcn.00401138
push 0
call fcn.0040267d
mov dword [0x40be04], eax
call fcn.004027c4
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x40120b
push 0
jmp 0x4010e1
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x40125e
call fcn.00407361
push eax
mov ebx, dword [0x40bdfc]
cmp ebx, dword [esp]
jne 0x401248
push 0
push dword [0x40be04]
call sub.USER32.dll_ShowWindow
push 5
push dword [0x40be04]
call sub.USER32.dll_ShowWindow
jmp 0x40125d
mov ebx, dword [0x40be00]
cmp ebx, dword [esp]
jne 0x40125d
push 0
jmp 0x4010e1
pop eax
pop eax
movsx ebx, byte [esp]
and ebx, ebx
jl 0x4011ef
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x40318c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push 0x40a008
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x403224
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x403221
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x403221
lea eax, [esi - 1]
push eax
push dword [0x40bf28]
call fcn.00407e5d
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x403223
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x403218
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x40330b
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4031fe
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4032ca
push eax
call esi
test al, al
jns 0x4032ca
push 0x11
call esi
test al, al
js 0x4032ca
push 0x10
call esi
test al, al
js 0x4032ca
push 0x12
call esi
test al, al
js 0x4032ca
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4032ca
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40329e
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4032b5
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x403315
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x403315
test ebp, ebp
je 0x4032ee
push 0x11
call esi
test al, al
js 0x4032e6
push 0x10
call esi
test al, al
js 0x4032e6
push 0x12
call esi
test al, al
jns 0x4032ee
push 1
push ebp
call fcn.00403321
test ebx, ebx
je 0x403302
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x403315
test edi, edi
je 0x403315
mov eax, dword [edi + 8]
jmp 0x403317
and dword [esp + 0x14], 0
jmp 0x403223
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x404ca0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x404cd2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ccd
cmp dword [esp + 0xc], esi
je 0x404ce9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4059dc
Capabilities:
Create process on windows

Disassembly:
cmp bh, 0x75
or byte [edx - 0x537ff3eb], cl
sub eax, 0xd775c085
invalid
xor byte [ecx], bl
inc edx
dec ebx
inc esp
add byte [eax], al
add byte [eax + 0x33], dl
shr byte [eax + 0x30], 0x67
inc edx
add byte [eax + 0x50], dl
push 0x2600003d
push eax
push eax
sbb edi, edi
jne 0x405a01
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405987
sal byte [ebx + eax*4 - 1], 0xbe
hlt
invalid

Function at 0x405ede
Capabilities:
Get file attributes

Disassembly:
dec dword [edi]
and al, 4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, edx
push 0xffffffffffffff94
inc ecx
neg ecx

Function at 0x425120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x425142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425138
mov eax, 1
add ebx, ebx
jne 0x42515b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425150
jne 0x42516c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425150
xor ecx, ecx
sub eax, 3
jb 0x425180
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4251f2
mov ebp, eax
add ebx, ebx
jne 0x42518b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4251bc
inc ecx
add ebx, ebx
jne 0x4251a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42519d
jne 0x4251b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42519d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4251dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4251cd
jmp 0x42513e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4251dc
add edi, ecx
jmp 0x42513e
pop esi
mov edi, esi
mov ecx, 0x7f1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4251fa
cmp byte [edi], 6
jne 0x4251fa
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 0x4251ff
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x425277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29acc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29be4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42522c
mov ecx, edi
jns 0x42525b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29be8]
or eax, eax
je 0x425271
mov dword [ebx], eax
add ebx, 4
jmp 0x425249
call dword [esi + 0x29bec]
popal
jmp 0x412044
Function at 0x68e91e
Capabilities:
Encode data using xor

Disassembly:
imul edx, dword [eax + 0x691e99fe], 0xf82420e9
inc ecx
sar byte [edx + ecx*8 - 0x15cfa5c3], cl
xor dl, ch
sbb eax, 0xf869c0eb
fcmove st(0), st(5)
stosb byte es:[edi], al
fucomp st(4)
sub al, 0x8a
mov ebp, 0xf0bc8dca
or eax, 0x3460ee68
insb byte es:[edi], dx
push 0xdea52c39
cmp dword [eax], edi
or dword [esp + ebp - 8], edi
jo 0x68e8cc
int3
sti
dec ebp
mov byte [0x883f6ae7], al
js 0x68e8bc
xor byte [esi + 6], ah
dec edi
lds eax, [ebx + 0x4f]
jmp 0xa754de10
Function at 0x40164a
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x40b818]
test eax, eax
je 0x40165a
push eax
call fcn.00403038
pop ecx
mov eax, dword [0x40b81c]
test eax, eax
je 0x40166a
push eax
call fcn.00403038
pop ecx
mov eax, dword [0x40b820]
test eax, eax
je 0x40167a
push eax
call fcn.00403038
pop ecx
mov eax, dword [0x40b824]
test eax, eax
je 0x40168a
push eax
call fcn.00403038
pop ecx
mov eax, dword [0x40b828]
test eax, eax
je 0x40169a
push eax
call fcn.00403038
pop ecx
mov eax, dword [0x40b82c]
test eax, eax
je 0x4016aa
push eax
call fcn.00403038
pop ecx
jmp fcn.00401537