joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a154
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x40a23d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40a24c
call sub.KERNEL32.DLL_LoadLibraryW
mov ebx, eax
push 0x40a264
push ebx
call fcn.00407140
mov esi, eax
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00405794
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x216]
push eax
call sub.advapi32.dll_GetUserNameW
lea eax, [ebp - 8]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.0040573c
push 0
push 0
push 0x40a28c
push dword [ebp - 8]
push 0x40a2a4
push dword [ebp - 4]
lea eax, [ebp - 0x21c]
mov edx, 4
call fcn.004058f4
mov eax, dword [ebp - 0x21c]
call fcn.004056e8
push eax
push 0x40a2a8
push 0x40a2b8
push 0
call esi
push ebx
call sub.KERNEL32.DLL_FreeLibrary_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a244
lea eax, [ebp - 0x21c]
call fcn.00404ed0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f30
ret

Function at 0x40a59c
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Start tcp server

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffd54
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x40a6e0
push 0
push 0
push 0
push 6
push 1
push 2
call sub.ws2_32.dll_WSASocketW
mov esi, eax
cmp esi, 0xffffffff
je 0x40a6e0
lea eax, [esp + 0x298]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b90
mov word [esp + 0x298], 2
movzx eax, word [0x412c50]
push eax
call sub.wsock32.dll_htons
mov word [esp + 0x29a], ax
push 0
call sub.wsock32.dll_htonl
mov dword [esp + 0x2a8], eax
mov eax, dword [esp + 0x2a8]
mov dword [esp + 0x29c], eax
push 0x10
lea eax, [esp + 0x29c]
push eax
push esi
call sub.wsock32.dll_bind
inc eax
je 0x40a6e0
push 5
push esi
call sub.wsock32.dll_listen
inc eax
je 0x40a6e0
jmp 0x40a6d3
lea eax, [esp + 0x194]
call fcn.00407400
lea edx, [esp + 0x194]
mov eax, esi
call fcn.004073f0
push 0
push 0
push 0
lea eax, [esp + 0x1a0]
push eax
push 0
call sub.wsock32.dll_select
inc eax
je 0x40a6db
test bl, bl
jne 0x40a6db
lea edx, [esp + 0x194]
mov eax, esi
call fcn.004073d8
test al, al
je 0x40a6cc
mov eax, 4
call fcn.0040379c
mov edi, eax
push 0
push 0
push esi
call sub.wsock32.dll_accept
mov ebp, eax
mov dword [edi], ebp
inc ebp
je 0x40a6db
push edi
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x40a4d8
xor edx, edx
xor eax, eax
call fcn.00404dac
push 0xf
call sub.KERNEL32.DLL_Sleep_1
test bl, bl
je 0x40a651
call sub.wsock32.dll_WSACleanup
add esp, 0x2ac
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40bb78
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x40bb80
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x40bd86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x412c04
mov edx, dword [ebp - 4]
call fcn.004051fc
lea edx, [ebp - 0x64]
xor eax, eax
call fcn.00403a90
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00409f5c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040887c
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0040887c
mov edx, dword [ebp - 0x68]
pop eax
call fcn.004059a4
je 0x40bd60
push 0
lea eax, [ebp - 0x6c]
call fcn.0040a014
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 4]
call fcn.00405814
mov eax, dword [ebp - 0x6c]
call fcn.004056e8
push eax
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.00403a90
mov eax, dword [ebp - 0x70]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_CopyFileW
movzx eax, byte [0x412c64]
sub al, 1
jb 0x40bc33
je 0x40bc52
jmp 0x40bc6f
lea eax, [ebp - 0x74]
call fcn.0040a014
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 4]
call fcn.00405814
mov eax, dword [ebp - 0x74]
xor edx, edx
call fcn.0040ba28
jmp 0x40bc6f
lea eax, [ebp - 0x78]
call fcn.0040a014
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 4]
call fcn.00405814
mov eax, dword [ebp - 0x78]
mov dl, 1
call fcn.0040ba28
test bl, bl
je 0x40bc9d
lea eax, [ebp - 0x80]
call fcn.0040a014
push dword [ebp - 0x80]
push dword [ebp - 4]
push 0x40bda0
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.004058f4
mov eax, dword [ebp - 0x7c]
call fcn.00408408
jmp 0x40bd03
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b90
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
call fcn.0040a014
push dword [ebp - 0x88]
push dword [ebp - 4]
push 0x40bdb0
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.004058f4
mov eax, dword [ebp - 0x84]
call fcn.004056e8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.00403a90
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.0040887c
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x98]
call fcn.0040a014
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.0040887c
mov eax, dword [ebp - 0x94]
mov ecx, 1
pop edx
call fcn.00405ad8
test eax, eax
jne 0x40bd60
xor eax, eax
call fcn.00404d4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd8d
lea eax, [ebp - 0x98]
mov edx, 0x10
call fcn.00404f30
lea eax, [ebp - 4]
call fcn.00404ed0
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x403203
pop dword [ebp - 0x2c]
mov eax, 0x52fc84ef
add eax, 0xad43ad14
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1ef55e81
sub dword [ebp - 0x3c], 0xd0a31936
mov dword [ebp - 0x38], 0xe0f90a5d
add dword [ebp - 0x38], 0x513a41e8
mov dword [ebp - 0x34], 0xfa28ad3
add dword [ebp - 0x34], 0x3ca9b95b
mov dword [ebp - 0x30], 0x79eccb7d
add dword [ebp - 0x30], 0x86133483
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x49145829
add dword [ebp - 0x3c], 0x2b5e112d
mov dword [ebp - 0x38], 0xf1752076
add dword [ebp - 0x38], 0x4ff740ff
mov dword [ebp - 0x34], 0xade9f26d
sub dword [ebp - 0x34], 0x4a7a8601
mov dword [ebp - 0x30], 0x439d6e53
sub dword [ebp - 0x30], 0x439d6e53
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x96536d4e
sub eax, 0x9612fca6
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x365e1
push 0
call eax
mov ecx, 0x4718
xor ebx, ebx
add ebx, eax
mov esi, 0xf62238c5
sub esi, 0xf5e138c5
add esi, dword [ebp - 0x2c]
mov edi, 0x8b1862d6
sub edi, 0x5a509b18
xor dword [ebp - 0x18], ecx
mov edx, dword [esi]
xor dword [ebp - 0x1c], ecx
sub edx, edi
sub dword [ebp - 0x28], edi
mov dword [ebx], edx
xor dword [ebp - 0x18], edi
add ebx, 0x13df3e63
add ebx, 0xec20c1a1
add esi, 4
loop 0x40331c
add eax, 0x10f33
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409ab7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x409ac6
pop dword [ebp - 0x30]
mov eax, 0xf436bd69
sub eax, 0xf3f622a3
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x35b46
push 0
mov eax, 0xccd76505
add eax, 0x33697bd3
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xed097eeb
add ecx, 0x12f6baed
mov edx, eax
mov esi, 0x6d7c0b65
sub esi, 0x6d3acfa1
add esi, dword [ebp - 0x30]
mov ebx, 0xb4097ae6
xor dword [ebp - 0xc], 0x11e15a2c
mov edi, dword [esi]
sub dword [ebp - 0x2c], 0x8eec20c7
add edi, ebx
add dword [ebp - 0x10], esi
mov dword [edx], edi
sub dword [ebp - 0x28], 0x40be94e2
add edx, 0xe7ed3592
sub edx, 0xe7ed358e
add esi, 0xf2962afd
add esi, 0xd69d507
loop 0x409b1f
add eax, 0xda33
mov ebx, eax
add eax, 5
mov ecx, 0x109651c8
add ecx, 0xefa9ae38
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x41a3b4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41a409
push dword [esp + 0x10]
push 0x41a333
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4392b0]
test esi, esi
je 0x41a462
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41a401
cmp byte [esi + 0x10], 0
je 0x41a401
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41a3dd
jmp 0x41a462
mov esi, dword [0x4392b0]
test esi, esi
je 0x41a462
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41a45b
cmp byte [esi + 0x11], 0
je 0x41a437
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41a44e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4392b0
call fcn.004300dd
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41a416
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d318
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x41d38a
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x41d341
mov ebx, eax
push dword [ebp]
call fcn.0041ca9a
push ebx
push dword [ebp]
mov edi, eax
call fcn.0041ca71
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0041d3aa
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42456a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4
Function at 0x42486c
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x43a2c8], 0
jne 0x42493d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x43a998
mov dword [0x43a2c8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x438d40]
mov dword [0x43a78c], eax
mov dword [0x43a2cc], 0x1f4
call esi
mov dword [0x43a79c], eax
mov eax, dword [0x43a2cc]
add eax, eax
push eax
push 8
push dword [0x438d40]
call esi
xor ebx, ebx
mov dword [0x43a798], eax
push 0x43a7a8
mov dword [0x43a790], ebx
mov dword [0x43a794], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x43a7c0], eax
call esi
mov dword [0x43a7c4], eax
cmp dword [0x43a7c0], ebx
je 0x424934
test eax, eax
je 0x424934
lea eax, [esp + 0xc]
mov dword [0x43a7a0], ebx
push eax
push ebx
push ebx
push 0x42436f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43a7a4], eax
jmp 0x42493a
mov dword [0x43a7a0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x425318
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 0x42548e
mov eax, dword [esp + 0x24]
dec eax
je 0x425471
dec eax
jne 0x42548e
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004252d1
pop ecx
test eax, eax
je 0x4253cf
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x425392
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x42546d
dec ebx
je 0x425469
dec ebx
je 0x425448
dec ebx
je 0x425402
sub ebx, 4
jne 0x42548e
test edi, edi
jne 0x42548e
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x42548e
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 0x425392
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x42538d
sub edi, 0
je 0x42543a
dec edi
je 0x42542c
dec edi
je 0x42541e
dec edi
jne 0x42548e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x42548e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x42548e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x42548e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x42548e
sub edi, 0
je 0x425465
dec edi
je 0x425461
dec edi
jne 0x42548e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x42548e
push 0x3c
jmp 0x42548d
push 0x32
jmp 0x42548d
push 0x14
jmp 0x42548d
push 5
jmp 0x42548d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42548b
cmp eax, 0xa
je 0x425487
cmp eax, 0x5a
jne 0x42548e
push 0x28
jmp 0x42548d
push 0x1e
jmp 0x42548d
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x425944
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x43a9b8]
call fcn.0042f90a
mov esi, eax
test esi, esi
je 0x425a1e
cmp dword [ebp + 0xc], 0
je 0x425990
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x425981
cmp dword [esi + 0x1c], 0
jne 0x425981
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x425a1e
test byte [ebp + 0x10], 3
je 0x4259ab
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004269ba
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4259d0
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4259e4
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x425a01
test ebx, ebx
je 0x4259f5
push 8
jmp 0x425a07
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x425a14
test ebx, ebx
je 0x425a0a
push 3
pop ecx
jmp 0x425a14
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x426b4d
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 0x426be5
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x426be2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x426be2
lea eax, [esi - 1]
push eax
push dword [0x43a9b8]
call fcn.0042f90a
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x426be4
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x426bd9
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x426ccc
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x426bbf
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x426c8b
push eax
call esi
test al, al
jns 0x426c8b
push 0x11
call esi
test al, al
js 0x426c8b
push 0x10
call esi
test al, al
js 0x426c8b
push 0x12
call esi
test al, al
js 0x426c8b
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x426c8b
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x426c5f
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x426c76
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x426cd6
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x426cd6
test ebp, ebp
je 0x426caf
push 0x11
call esi
test al, al
js 0x426ca7
push 0x10
call esi
test al, al
js 0x426ca7
push 0x12
call esi
test al, al
jns 0x426caf
push 1
push ebp
call fcn.00426ce2
test ebx, ebx
je 0x426cc3
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x426cd6
test edi, edi
je 0x426cd6
mov eax, dword [edi + 8]
jmp 0x426cd8
and dword [esp + 0x14], 0
jmp 0x426be4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x427528
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x43a808]
push esi
test eax, eax
jne 0x427539
push fcn.00427641
push 0x10
push 0x258
call fcn.0042f9dd
mov dword [0x43a808], eax
push dword [esp + 0xc]
push eax
call fcn.0042f949
mov esi, eax
test esi, esi
je 0x42763a
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x42755b
mov edi, 0x432008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x42756b
xor eax, eax
cmp word [ebx], ax
jne 0x427570
mov ebx, 0x432118
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x438d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x427621
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4275d1
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4275d5
push 0x43210c
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4275d5
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4275f9
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x42760f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42760d
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x438d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x427638
cmp dword [esp + 0x14], 0xffffffff
je 0x42762c
mov esi, dword [esp + 0x14]
push esi
push dword [0x43a808]
call fcn.0042f8bb
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x427c90
Capabilities:
Write file on windows

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

Function at 0x428380
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4283a1
push esi
call fcn.00427c90
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x428415
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x428402
dec ecx
je 0x4283ed
sub ecx, 2
je 0x4283da
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x42845a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x42847b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc