joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40bccc]
jne 0x407e84
test ecx, 0xffff0000
jne 0x407e84
ret
jmp fcn.00407e8e

Function at 0x4092b9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409760
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4093b5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x40c080], 2
jne 0x40933a
push 0x401cac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x40933a
push 0x401c94
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40933a
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x40933a
cmp dword [ebp - 4], esi
jbe 0x40933a
mov esi, dword [ebp - 4]
mov edx, dword [0x40c080]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x409363
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x40936f
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x409381
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x4093b5
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x4093b5
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4093b5
xor eax, eax
inc eax
jmp 0x4093b7
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e02
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409e33
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x409e3a
cmp ebx, dword [ebp + 8]
jae 0x409e3a
xor eax, eax
jmp 0x40a02a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409e4b
xor eax, eax
inc eax
jmp 0x40a029
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409e61
cmp ecx, edx
jae 0x409fa6
cmp dword [eax + 4], 0
je 0x409e6a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409e52
cmp dword [ebp + 8], 0
je 0x409e8c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409fa6
cmp eax, esi
jae 0x409fa6
mov eax, dword [0x40c0d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409eb1
cmp dword [esi*4 + 0x40c0d8], edi
je 0x409faa
inc esi
cmp esi, eax
jl 0x409e9f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a026
cmp dword [ebp - 8], 0x1000000
jne 0x40a026
test byte [ebp - 0xc], 0xcc
je 0x409f2f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a026
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a026
cmp word [eax + 0x18], 0x10b
jne 0x40a026
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a026
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409f2f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409f2f
test byte [ecx + 0x27], 0x80
jne 0x409fa6
push 1
push 0x40c118
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409e43
mov ecx, dword [0x40c0d0]
test ecx, ecx
mov edx, ecx
jle 0x409f63
lea eax, [ecx*4 + 0x40c0d4]
cmp dword [eax], edi
je 0x409f63
dec edx
sub eax, 4
test edx, edx
jg 0x409f57
test edx, edx
jne 0x409f94
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409f70
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409f88
lea eax, [edx*4 + 0x40c0d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409f76
cmp ecx, 0x10
jge 0x409f94
inc ecx
mov dword [0x40c0d0], ecx
push 0
push 0x40c118
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409e43
xor eax, eax
jmp 0x40a029
test esi, esi
jle 0x409e43
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40c118
call ebx
test eax, eax
jne 0x409e43
cmp dword [esi*4 + 0x40c0d8], edi
je 0x40a000
mov eax, dword [0x40c0d0]
lea esi, [eax - 1]
test esi, esi
jl 0x409fee
cmp dword [esi*4 + 0x40c0d8], edi
je 0x409fea
dec esi
jns 0x409fde
test esi, esi
jge 0x409ffe
cmp eax, 0x10
jge 0x409ff9
inc eax
mov dword [0x40c0d0], eax
lea esi, [eax - 1]
jmp 0x40a000
je 0x40a018
xor ecx, ecx
test esi, esi
jl 0x40a018
lea eax, [ecx*4 + 0x40c0d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a006
push 0
push 0x40c118
call ebx
jmp 0x409e43
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018b3
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040df60
mov eax, 0x416107
mov dword [0x41702c], eax
mov dword [esp], 0
jmp 0x4018d4
mov eax, 3
cmp eax, dword [esp]
jl 0x401942
mov eax, dword [0x41702c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41702c]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d90
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dfc0
lea eax, [esp + 0x10]
push eax
call fcn.0040de60
inc dword [esp]
jno 0x4018d4
push 0x400
call fcn.00409b40
mov dword [esp + 0x10], eax
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
call fcn.0040a6f6
lea eax, [esp + 0x18]
push eax
call fcn.0040de60
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409b60
lea eax, [0x417070]
push eax
call fcn.0040de60
push dword [0x417070]
call fcn.0040a787
push dword [0x417070]
call fcn.0040a665
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417070]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409b60
lea eax, [0x417024]
push eax
call fcn.0040de60
push dword [0x417024]
call fcn.0040a787
push dword [0x417024]
call fcn.0040a665
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417024]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x417024]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409b60
lea eax, [0x417038]
push eax
call fcn.0040de60
push dword [0x417038]
call fcn.0040a787
push dword [esp + 0xc]
push dword [0x417038]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417024]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409b60
lea eax, [0x417068]
push eax
call fcn.0040de60
push dword [esp + 0x10]
call fcn.00409b20
jmp 0x401ac7
push dword [esp + 0x14]
call fcn.0040def0
push dword [esp + 8]
call fcn.0040def0
push dword [esp + 0xc]
call fcn.0040def0
add esp, 0x18
pop ebx
ret
Function at 0x401f01
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040df60
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401f2c
push dword [0x417010]
call fcn.004053c7
and eax, eax
je 0x401f2c
push dword [0x417010]
call fcn.00405436
push dword [0x417068]
call fcn.0040a787
push dword [0x417058]
call fcn.0040a787
call fcn.00403429
push dword [0x417038]
call fcn.0040a787
push dword [0x417024]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x417070]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x401f7a
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401f81
call fcn.0040df60
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x48], eax
push 0x19
call fcn.00405532
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x402035
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x402035
jmp 0x402037
jmp 0x402008
mov eax, dword [esp + 0x4c]
jmp 0x40203f
push dword [esp]
call fcn.0040def0
push dword [esp + 4]
call fcn.0040def0
push dword [esp + 8]
call fcn.0040def0
add esp, 0x50
pop ebx
pop ebp
ret 0xc
Function at 0x402449
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40244f
call fcn.0040df60
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4160d0
mov dword [0x41702c], eax
mov dword [esp], 0
jmp 0x40247d
mov eax, 6
cmp eax, dword [esp]
jl 0x4024eb
mov eax, dword [0x41702c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41702c]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d90
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dfc0
lea eax, [esp + 0x10]
push eax
call fcn.0040de60
inc dword [esp]
jno 0x40247d
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.00409b60
lea eax, [esp + 0x14]
push eax
call fcn.0040de60
mov edx, dword [esp + 0x10]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
lea eax, [esp + 0x18]
push eax
call fcn.0040de60
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405700
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4025a9
push edx
call fcn.0040de20
pop edx
push eax
mov edx, 0x416026
push edx
call fcn.0040dfc0
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040de60
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409860
mov edx, dword [esp + 0x20]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4025de
push dword [esp + 0x14]
call fcn.0040def0
push dword [esp + 8]
call fcn.0040def0
push dword [esp + 0x10]
call fcn.0040def0
push dword [esp + 0xc]
call fcn.0040def0
push dword [esp + 0x20]
call fcn.0040def0
add esp, 0x24
pop ebx
ret

Function at 0x402610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040df60
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x417018], eax
push dword [0x417018]
call fcn.00409b40
mov dword [esp + 4], eax
push dword [0x417018]
push dword [esp + 8]
push dword [esp + 8]
call fcn.00409c20
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x40266d
add esp, 8
ret 8
Function at 0x402b19
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402b1f
call fcn.0040df60
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402b4b
mov eax, 1
jmp 0x402b4d
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x4031cd
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4031d3
call fcn.0040df60
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402b19
and eax, eax
je 0x403223
call fcn.0040559a
mov ebx, eax
cmp ebx, 0x41
je 0x403223
mov eax, 1
jmp 0x403225
xor eax, eax
and eax, eax
je 0x403393
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
mov edx, str.sysnative
push edx
call fcn.0040dfc0
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
mov edx, dword [esp + 4]
push edx
call fcn.0040dfc0
lea eax, [esp + 0x10]
push eax
call fcn.0040de60
mov edx, dword [esp + 8]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
mov edx, dword [esp + 4]
push edx
call fcn.0040dfc0
mov edx, dword [esp + 8]
push edx
call fcn.0040dfc0
lea eax, [esp + 0x14]
push eax
call fcn.0040de60
push dword [esp + 0xc]
push 0
call fcn.0040ad60
and eax, eax
je 0x403314
mov dword [esp + 0x14], 1
push 0
call fcn.0040a970
jmp 0x40331c
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040ad60
and eax, eax
je 0x403342
mov dword [esp + 0x18], 1
push 0
call fcn.0040a970
jmp 0x40334a
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x403391
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x4033ce
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040de20
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040de60
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de20
pop edx
push eax
push edx
call fcn.0040dfc0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4033f6
push dword [esp + 0x10]
call fcn.0040def0
push dword [esp]
call fcn.0040def0
push dword [esp + 4]
call fcn.0040def0
push dword [esp + 8]
call fcn.0040def0
push dword [esp + 0xc]
call fcn.0040def0
add esp, 0x1c
pop ebx
ret 8
Function at 0x403429
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040df60
mov ebx, dword [0x417028]
cmp ebx, 1
jne 0x4034d6
push dword [0x4170a0]
call fcn.0040a3e3
mov ebx, eax
and ebx, ebx
jle 0x40347d
push dword [0x4170a0]
call fcn.0040a3ed
push dword [0x4170a0]
call fcn.0040a402
or eax, eax
je 0x40347d
mov ebp, dword [0x4170a4]
push dword [ebp + 8]
call fcn.0040a787
jmp 0x40345e
push dword [0x417098]
call fcn.0040a3e3
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x4034d6
push 5
push 0
push 1
push dword [0x417098]
call fcn.00406f50
push dword [0x417098]
call fcn.0040a3ed
push dword [0x417098]
call fcn.0040a402
or eax, eax
je 0x4034d6
mov ebp, dword [0x41709c]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x4034b7
mov eax, 1
jmp 0x4034df
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405436
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053ea
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x4176a0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4170bc]
jmp 0x405467
cmp dword [esi + 0xc], edi
je 0x40546d
mov esi, dword [esi]
test esi, esi
jne 0x405460
jmp 0x405485
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x4170bc
call fcn.0040dad2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x405492
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40552a
push edi
push 0x4176a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4170bc]
test edi, edi
je 0x4054fe
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054f7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4170bc
call fcn.0040dad2
pop ecx
pop ecx
jmp 0x4054f9
mov edi, dword [edi]
test edi, edi
jne 0x4054ce
pop ebx
mov eax, dword [0x416110]
mov esi, eax
inc eax
push 0x10
push 0x4170bc
mov dword [0x416110], eax
call fcn.0040db12
pop ecx
pop ecx
push 0x4176a0
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x28
push 0
push 0x40d060
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40d064], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40d060], eax
mov eax, 0x40c108
mov dword [0x40d068], eax
call fcn.00402213
call fcn.00408cf0
call fcn.00408480
call fcn.00407ea4
call fcn.0040797f
call fcn.0040772a
call fcn.004070c4
call fcn.00406ef6
call fcn.00406c50
call fcn.00404d8c
call fcn.00404630
call fcn.00403e8a
call fcn.00403a63
call fcn.00403a4f
call fcn.0040398b
call fcn.00403893
call fcn.0040359f
call fcn.004022cc
mov dword [0x40d070], 0
mov edx, dword [0x40d1a8]
push edx
push edx
mov edx, dword [0x40d1a8]
push edx
push edx
call fcn.004070f3
mov edx, dword [0x40c128]
add dword [esp], edx
call fcn.004078a9
push 0x40d074
call fcn.00408d70
call fcn.004012ec
push 0
jmp 0x4010eb
call 0x401105
call fcn.00408d40
push dword [0x40d060]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.004022a9
call fcn.00403549
call fcn.00403892
call fcn.00403a43
call fcn.00403e89
call fcn.00406c70
call fcn.00406f84
call fcn.0040771e
call fcn.00407928
call fcn.00407961
call fcn.00408545
call fcn.00408470
ret

Function at 0x4012ec
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.00401265
push 0
call fcn.00402703
mov dword [0x40d084], eax
call fcn.0040284a
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x401338
push 0
jmp 0x4010eb
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x40138b
call fcn.00407a99
push eax
mov ebx, dword [0x40d07c]
cmp ebx, dword [esp]
jne 0x401375
push 0
push dword [0x40d084]
call sub.USER32.dll_ShowWindow
push 5
push dword [0x40d084]
call sub.USER32.dll_ShowWindow
jmp 0x40138a
mov ebx, dword [0x40d080]
cmp ebx, dword [esp]
jne 0x40138a
push 0
jmp 0x4010eb
pop eax
pop eax
movsx ebx, byte [esp]
and ebx, ebx
jl 0x40131c
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x403212
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 0x40b008
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4032aa
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4032a7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4032a7
lea eax, [esi - 1]
push eax
push dword [0x40d1b0]
call fcn.004085dd
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4032a9
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x40329e
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x403391
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x403284
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x403350
push eax
call esi
test al, al
jns 0x403350
push 0x11
call esi
test al, al
js 0x403350
push 0x10
call esi
test al, al
js 0x403350
push 0x12
call esi
test al, al
js 0x403350
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x403350
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x403324
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40333b
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40339b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x40339b
test ebp, ebp
je 0x403374
push 0x11
call esi
test al, al
js 0x40336c
push 0x10
call esi
test al, al
js 0x40336c
push 0x12
call esi
test al, al
jns 0x403374
push 1
push ebp
call fcn.004033a7
test ebx, ebx
je 0x403388
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40339b
test edi, edi
je 0x40339b
mov eax, dword [edi + 8]
jmp 0x40339d
and dword [esp + 0x14], 0
jmp 0x4032a9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x404d20
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 0x404d52
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 0x404d4d
cmp dword [esp + 0xc], esi
je 0x404d69
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