joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493bbd
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x11f18fc]
call fcn.004d1396
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x493cbd
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x493c13
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x493c0b
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x493c53
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x493c95
push 0x22
pop edx
cmp cx, dx
je 0x493c45
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x493c35
xor ecx, ecx
cmp word [eax], cx
je 0x493c95
mov ecx, eax
add eax, 2
jmp 0x493c97
test dx, dx
je 0x493c9d
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x493c45
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x493c8b
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x493c95
cmp cx, dx
je 0x493c88
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x493c78
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x493c5d
jmp 0x493c45
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x493c9f
xor edx, edx
cmp dword [ebp], ebx
jne 0x493ca8
test edi, edi
jne 0x493cc5
test edx, edx
je 0x493cad
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x493c01
test edi, edi
jne 0x493cd6
mov eax, ebx
jmp 0x493cda
test esi, esi
je 0x493cd6
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x493cda
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x493d43
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x493d97
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x493d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x493d91
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x493d56
jmp 0x493d95
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x493e36
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x493ef5
cmp dword [esp + 0x24], 2
je 0x493ef5
push 0x2000
push ebp
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x493ec4
cmp dword [esp + 0x18], 2
jne 0x493ee0
cmp dword [esp + 0x28], 0xffffffff
je 0x493e88
cmp ebp, dword [esp + 0x28]
jae 0x493ee0
add ebp, 2
test ebx, ebx
jne 0x493ead
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x493ee0
cmp ax, 0xd
je 0x493ec4
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x493e74
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0051f910
jmp 0x493f87
push eax
push 0
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x493f13
cmp ebp, dword [esp + 0x28]
jae 0x493f6b
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493f6b
cmp dword [esp + 0x18], 1
jne 0x493f6b
inc ebp
test ebx, ebx
jne 0x493f58
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x493f6b
cmp al, 0xd
je 0x493f06
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x493f06
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x493f82
call fcn.0051f960
jmp 0x493f87
call fcn.0051f8b0
push esi
push 0
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4941f6
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x494395
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x494394
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x494393
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x1177d64]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x49438c
call fcn.004e4a60
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x494379
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004e4f30
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004e50b0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x4942c5
cmp dword [eax + 8], 3
je 0x4942c5
push dword [esp + 0x50]
push edi
call fcn.004e4800
pop ecx
pop ecx
jmp 0x4942e3
push dword [esp + 0x50]
call fcn.0051f820
mov esi, eax
push esi
push edi
call fcn.004e4f20
pop ecx
pop ecx
push esi
call fcn.0051f810
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004e4f80
push 0x8000
push edi
call fcn.004e4dd0
push edi
push dword [esi]
call fcn.004e5220
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x494360
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004e51e0
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x494358
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x494326
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x494372
mov dword [esp + 0x18], 1
push edi
call fcn.004e4990
pop ecx
push ebp
push 0
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc
Function at 0x494a2c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x494ab2
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x494ab1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x494aa9
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x494a9a
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00494cf1
mov ebp, eax
push edi
push 0
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x494ab9
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x11f1940]
mov ebx, ebp
call fcn.004d1507
mov edi, eax
test edi, edi
je 0x494b78
push esi
push dword [esp + 0x1c]
call fcn.00494d57
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x494b3b
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.00494f50
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x494b82
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x494b61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x498b40
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x498ae7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x498b05
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x498b63
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x498b4a
dec ebp
sbb byte [ebx], bh
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x498b53
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x498b5d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x498b3f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x498ac9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x498bb0
dec eax
je 0x498ba7
sub eax, 3
je 0x498b9e
mov dword [ebp - 4], 0x40
jmp 0x498bcd
mov dword [ebp - 4], 4
jmp 0x498bb3
mov dword [ebp - 4], 0x20
jmp 0x498bb3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x498bff
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x498b7f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00498410
adc al, 5
cmp bh, 0x75
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x498c0b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3b16
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x11f0530]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.004d1507
mov esi, eax
test esi, esi
je 0x4b3cab
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x4b3bc0
push ebx
call fcn.004b3e86
jmp 0x4b3b58
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x4b3b50
push dword [esi + 0x14]
call fcn.004b4290
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.004b3aa1
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x4b3cc5
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4b3b9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x4b3bae
push dword [esp + 0x20]
push ebx
call fcn.004b3f5a
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x4b3c60
test byte [esp + 0x1c], 1
je 0x4b3bcf
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x4b3c6a
push esi
call fcn.004b3a38
lea eax, [esi + 4]
push 0x10
push eax
call fcn.004d1c7c
pop ecx
pop ecx
mov ecx, dword [0x11f054c]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x4b3cab
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x4b3c4b
push edi
push dword [esp + 0x24]
push ebx
call fcn.004b3eba
jmp 0x4b3c58
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x4b3cab
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x4b3c8c
push dword [esp + 0x20]
push ebx
call fcn.004b3f5a
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x4b3cab
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4b67f1
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x11f18a4]
call fcn.004d1507
mov ebx, eax
test ebx, ebx
je 0x4b6855
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b681a
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b6855
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004d2a70
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004d2b50
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b740b
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x11f1c80]
call fcn.004d1396
xor ebp, ebp
mov esi, eax
cmp dword [0x11f0908], ebp
jne 0x4b74e7
xor ebx, ebx
inc ebx
mov dword [0x11f0908], ebx
call fcn.004bc428
mov edi, 0xa4
push edi
push ebp
push 0x11f0910
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x11f0910], 0x13
lea eax, [esp + 0x10]
mov dword [0x11f0914], edi
mov dword [0x11f0920], 0x4b7356
mov dword [0x11f0924], 0x4b7681
push eax
mov dword [0x11f0978], 0x4b7331
mov dword [0x11f097c], 0x4b75cc
mov dword [0x11f091c], 0x4b730c
mov dword [0x11f09a0], 0x4b7371
mov dword [0x11f09b4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b74e7
cmp dword [esp + 0x20], ebx
je 0x4b74cf
cmp dword [esp + 0x20], 2
jne 0x4b74e7
cmp dword [esp + 0x14], 5
jae 0x4b74d7
mov dword [0x11f09b4], ebp
jmp 0x4b74e7
jne 0x4b74e7
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x11f09b4], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004c1903
mov eax, dword [esp + 0x140]
push ebp
push dword [0x1177d68]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4b75bd
push dword [esp + 0x128]
push dword [0x11f18a4]
call fcn.004d1546
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4b758c
push edi
call fcn.004cca66
test eax, eax
je 0x4b758c
push ebp
push ebp
push edi
call fcn.004cc624
mov dword [esi + 0x18], eax
jmp 0x4b758f
mov dword [esi + 0x18], ebp
push 0x4b705b
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x11f0910
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x11f090c], eax
call fcn.004bbab5
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4bb3a5
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x11f1c80]
call fcn.004d1396
xor ebx, ebx
mov ebp, eax
cmp dword [0x11f0ec8], ebx
jne 0x4bb439
mov esi, 0xa4
push esi
push ebx
push 0x11f0ed0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x11f0ed4], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x11f0ed0], 0xa
mov dword [0x11f0ed8], 0x4baf3a
push 0x7f89
push ebx
mov dword [0x11f0f48], 0x4bbbee
mov dword [0x11f0f4c], 0x4bbbc8
mov dword [0x11f0edc], 0x4baf59
mov dword [0x11f0f60], 0x4baf79
call esi
mov dword [0x11f0ec8], eax
test eax, eax
jne 0x4bb439
push 0x7f00
push ebx
call esi
mov dword [0x11f0ec8], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004c1903
push ebx
push dword [0x1177d68]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4bb505
push edi
push dword [esp + 0x14]
push dword [0x11f18a4]
call fcn.004d1546
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x11f0ed0
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.004bbab5
push 0x4bb05f
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x4bcb55
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bcccb
mov eax, dword [esp + 0x24]
dec eax
je 0x4bccae
dec eax
jne 0x4bcccb
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004bcb0e
pop ecx
test eax, eax
je 0x4bcc0c
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4bcbcf
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4bccaa
dec ebx
je 0x4bcca6
dec ebx
je 0x4bcc85
dec ebx
je 0x4bcc3f
sub ebx, 4
jne 0x4bcccb
test edi, edi
jne 0x4bcccb
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4bcccb
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4bcbcf
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4bcbca
sub edi, 0
je 0x4bcc77
dec edi
je 0x4bcc69
dec edi
je 0x4bcc5b
dec edi
jne 0x4bcccb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4bcccb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4bcccb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4bcccb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4bcccb
sub edi, 0
je 0x4bcca2
dec edi
je 0x4bcc9e
dec edi
jne 0x4bcccb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4bcccb
push 0x3c
jmp 0x4bccca
push 0x32
jmp 0x4bccca
push 0x14
jmp 0x4bccca
push 5
jmp 0x4bccca
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bccc8
cmp eax, 0xa
je 0x4bccc4
cmp eax, 0x5a
jne 0x4bcccb
push 0x28
jmp 0x4bccca
push 0x1e
jmp 0x4bccca
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4be48f
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 str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4be527
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4be524
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4be524
lea eax, [esi - 1]
push eax
push dword [0x11f18a0]
call fcn.004d1507
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4be526
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4be51b
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4be60e
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4be501
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4be5cd
push eax
call esi
test al, al
jns 0x4be5cd
push 0x11
call esi
test al, al
js 0x4be5cd
push 0x10
call esi
test al, al
js 0x4be5cd
push 0x12
call esi
test al, al
js 0x4be5cd
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4be5cd
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4be5a1
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4be5b8
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4be618
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4be618
test ebp, ebp
je 0x4be5f1
push 0x11
call esi
test al, al
js 0x4be5e9
push 0x10
call esi
test al, al
js 0x4be5e9
push 0x12
call esi
test al, al
jns 0x4be5f1
push 1
push ebp
call fcn.004be624
test ebx, ebx
je 0x4be605
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4be618
test edi, edi
je 0x4be618
mov eax, dword [edi + 8]
jmp 0x4be61a
and dword [esp + 0x14], 0
jmp 0x4be526
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4be783
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4be7fb
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4be7dc
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4be7d9
cmp ecx, 0x5c
je 0x4be7d9
cmp ecx, 0x2f
jne 0x4be7e6
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4be7c6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4be7fd
xor eax, eax
mov esp, ebp
pop ebp
ret 4