joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408720
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x411c20]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4088cd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x411b20]
lea edi, [ecx*4 + 0x411b20]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4088cd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40878e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40879f
push 2
push ebp
push eax
call fcn.00408660
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4088fe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x408849
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4087fa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4087e7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4087ca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4088ef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x408845
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4087c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4088be
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408892
cmp eax, 5
jne 0x40887b
mov dword [0x410520], eax
mov dword [0x41051c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00409890
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4088b2
cmp byte [ebp], 0x1a
jne 0x4088b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41051c], 0x1c
jmp 0x4088d7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41051c], 9
pop edi
pop esi
pop ebp
mov dword [0x410520], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408845
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40892f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x408849
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408849
Function at 0x40a440
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40a5fe
push 0x3d
push edi
call fcn.0040a8e0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a5fe
cmp edi, esi
je 0x40a5fe
mov dl, byte [esi + 1]
mov ecx, dword [0x410548]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x410544]
cmp eax, ecx
jne 0x40a497
push eax
call fcn.0040a6d0
add esp, 4
mov dword [0x410544], eax
test eax, eax
jne 0x40a512
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a4be
mov eax, dword [0x41054c]
test eax, eax
je 0x40a4be
call fcn.00409fa0
test eax, eax
je 0x40a50d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40a4ca
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004054a0
add esp, 4
mov dword [0x410544], eax
test eax, eax
je 0x40a5fe
mov dword [eax], 0
mov eax, dword [0x41054c]
test eax, eax
jne 0x40a50d
push 4
call fcn.004054a0
add esp, 4
mov dword [0x41054c], eax
test eax, eax
je 0x40a5fe
mov dword [eax], 0
mov eax, dword [0x410544]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040a650
mov esi, eax
add esp, 8
test esi, esi
jl 0x40a60f
cmp dword [ebx], 0
je 0x40a60f
test ebp, ebp
je 0x40a607
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00405330
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40a569
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x40a558
lea eax, [esi*4]
push eax
push ebx
call fcn.0040a740
add esp, 8
test eax, eax
je 0x40a583
mov dword [0x410544], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a5f6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004054a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a5f6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00405330
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x40a587
test ebp, ebp
jne 0x40a5f6
test esi, esi
jge 0x40a619
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040a740
add esp, 8
test eax, eax
je 0x40a5fe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x410544], eax
jmp 0x40a587
Function at 0x402445
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402484
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402484
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402484
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402484
cmp dword [ecx + 0x74], 0xe
jbe 0x402484
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406988
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x425cc4
push str.FlsAlloc
push 0x1f
call fcn.00406850
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4069bc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4252bc]
call esi
jmp 0x4069c2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406a06
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x425ce8
push str.FlsGetValue
push 0x21
call fcn.00406850
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406a3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4252bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x406a45
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x425cfc
push str.FlsSetValue
push 0x22
call fcn.00406850
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406a7f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4252bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4084b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408554
push ebx
push esi
call fcn.00408480
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408414
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408501
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408553
push edi
push eax
call fcn.004057a1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408521
call fcn.00405767
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408552
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408414
add esp, 0x20
test eax, eax
jne 0x408540
push edi
call fcn.00405767
jmp 0x408548
push ebx
call fcn.00405767
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b29d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406220
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b30c
cmp esi, dword [ebp - 4]
je 0x40b307
cmp dword [ebp + 0xc], 0
je 0x40b307
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b2e4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040adef
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40b30e
xor eax, eax
inc eax
jmp 0x40b30e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b373
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4324b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00406220
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406220
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40b3ea
cmp word [ecx], dx
je 0x40b3ea
mov eax, dword [0x426fa4]
push edi
dec eax
push eax
push 0x426e90
call fcn.0040b312
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40b45d
cmp word [eax], dx
je 0x40b45d
mov eax, dword [edi]
test eax, eax
je 0x40b40e
cmp word [eax], dx
je 0x40b40e
lea eax, [ebp - 0x10]
push eax
call fcn.0040acf5
jmp 0x40b417
lea eax, [ebp - 0x10]
push eax
call fcn.0040ad90
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40b487
mov eax, dword [0x426e8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x426b80
call fcn.0040b312
add esp, 0xc
test al, al
je 0x40b487
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40b452
cmp word [eax], di
je 0x40b452
lea eax, [ebp - 0x10]
push eax
call fcn.0040acf5
pop ecx
jmp 0x40b489
lea eax, [ebp - 0x10]
push eax
call fcn.0040ad90
jmp 0x40b44f
mov eax, dword [edi]
test eax, eax
je 0x40b474
cmp word [eax], dx
je 0x40b474
lea eax, [ebp - 0x10]
push eax
call fcn.0040acaa
pop ecx
jmp 0x40b487
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40b552
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040b197
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40b552
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40b552
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40b552
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b4df
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00406b85
test ebx, ebx
je 0x40b54d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00406b85
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b552
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b552
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040d4ad
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40b554
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402775
leave
ret
Function at 0x40f598
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433590]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f5d8
cmp byte [ebx], 0xa
jne 0x40f5d8
or byte [edi + eax + 0x28], 4
jmp 0x40f5dd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40f6dc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f6bf
inc eax
cmp dl, 0xd
je 0x40f609
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f62f
cmp eax, ecx
jae 0x40f63d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40f5f1
jmp 0x40f6dc
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f6ba
cmp dword [ebp - 0x10], 0
je 0x40f6ba
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x433590]
test byte [eax + edi + 0x28], 0x48
je 0x40f694
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f67f
mov byte [esi], dl
jmp 0x40f690
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f6dc
cmp byte [ebp - 1], 0xa
jne 0x40f6a3
cmp esi, ebx
jne 0x40f6a3
mov byte [esi], 0xa
jmp 0x40f6db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f3d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f6dc
mov byte [esi], 0xd
jmp 0x40f6db
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x433590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f6d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f6dc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40f6e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x433590]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f72b
cmp word [ebx], dx
jne 0x40f72b
or byte [eax + edi + 0x28], 4
jmp 0x40f730
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40f893
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40f873
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f771
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f7a7
cmp eax, edx
jae 0x40f7b5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40f74c
jmp 0x40f893
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f86e
cmp dword [ebp - 0x18], 0
je 0x40f86e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x433590]
test byte [eax + edi + 0x28], 0x48
je 0x40f844
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40f808
mov word [esi], cx
jmp 0x40f83f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x433590]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x433590]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x433590]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f893
pop eax
cmp word [ebp - 4], ax
jne 0x40f854
cmp esi, ebx
jne 0x40f854
mov word [esi], ax
jmp 0x40f890
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040f3d5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f893
push 0xd
pop eax
jmp 0x40f84f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x433590]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f88d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f893
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414915
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x433e84]
call fcn.0041a630
mov ebx, eax
test ebx, ebx
je 0x414979
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41493e
push dword [esp + 0xc]
push ebx
call eax
jmp 0x414979
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.0041b3c0
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 fcn.00409aec
pop ecx
sub edi, eax
push edi
call fcn.0041b460
pop edi
pop esi
pop ebx
ret 8

Function at 0x414d60
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414ee4
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x414ec7
sub eax, 1
jne 0x414ee4
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00414d19
pop ecx
test eax, eax
je 0x414dd4
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x414e05
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414ee4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x414e0a
xor edi, edi
inc edi
sub ecx, 3
je 0x414ec3
sub ecx, 1
je 0x414ebf
sub ecx, 1
je 0x414e9a
sub ecx, 1
je 0x414e4a
sub ecx, 4
jne 0x414ee4
test eax, eax
jne 0x414ee4
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x414ee4
sub eax, 0
je 0x414e8c
sub eax, 1
je 0x414e7e
sub eax, 1
je 0x414e70
sub eax, 1
jne 0x414ee4
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x414ee4
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x414ee4
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x414ee4
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x414ee4
sub eax, 0
je 0x414ebb
sub eax, 1
je 0x414eb7
sub eax, 1
jne 0x414ee4
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x414ee4
push 0x3c
jmp 0x414ee3
push 0x32
jmp 0x414ee3
push 0x14
jmp 0x414ee3
push 5
jmp 0x414ee3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414ee1
cmp eax, 0xa
je 0x414edd
cmp eax, 0x5a
jne 0x414ee4
push 0x28
jmp 0x414ee3
push 0x1e
jmp 0x414ee3
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x415fa6
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 0x41603c
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x416039
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x416039
lea eax, [esi - 1]
push eax
push dword [0x433ea4]
call fcn.0041a630
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41603b
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x416029
mov edx, 0xfa01
cmp word [ecx], dx
je 0x416034
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x416019
jmp 0x416039
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4160e2
push eax
call esi
test al, al
jns 0x4160e2
push 0x11
call esi
test al, al
js 0x4160e2
push 0x10
call esi
test al, al
js 0x4160e2
push 0x12
call esi
test al, al
js 0x4160e2
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4160e2
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00409dc4
add esp, 0xc
test eax, eax
je 0x4160b6
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00409dc4
add esp, 0xc
test eax, eax
jne 0x4160cd
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x416123
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0041e1f8
pop ecx
pop ecx
test eax, eax
je 0x416123
test ebp, ebp
je 0x416106
push 0x11
call esi
test al, al
js 0x4160fe
push 0x10
call esi
test al, al
js 0x4160fe
push 0x12
call esi
test al, al
jns 0x416106
push 1
push ebp
call fcn.0041612f
test ebx, ebx
je 0x41611a
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x416123
test edi, edi
je 0x416123
mov eax, dword [edi + 8]
jmp 0x416125
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x417990
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 0x4179c8
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 0x4179c3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
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 fcn.004123b0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret