joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dda0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4bca20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x41ddc7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x41ddc7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x41ddd0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4bca20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x42292c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00431d30
mov eax, dword [0x4bcc28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043ac3b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42296e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422aca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004330c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4bfff8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043ca19
mov ecx, dword [esi*4 + 0x4bfff8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x422ac3
cmp eax, dword [ecx + edi + 0x24]
jne 0x422ac3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422ac3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ca19
add esp, 0x14
test edx, edx
jl 0x422ac3
jg 0x422a39
test eax, eax
jb 0x422ac3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422ac3
jl 0x422a53
cmp dword [ebp - 0x1008], eax
ja 0x422ac3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422a71
test ebx, ebx
je 0x422aaa
cmp ecx, edi
jae 0x422aaa
mov al, byte [ecx]
cmp al, 0xd
jne 0x422a8b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422a97
cmp byte [ecx + 1], 0xa
jne 0x422a97
inc ecx
jmp 0x422a97
movzx eax, al
movsx eax, byte [eax + 0x4bcc30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422a71
cmp edx, ebx
jne 0x422a71
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422ac8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043adbb
leave
ret
Function at 0x426ba0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x426bc0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x426bc0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x426bc0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42efd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x42f004
push esi
call fcn.0042f500
add esp, 4
cmp byte [esi + 0x40], 0
je 0x42effb
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
jmp 0x42f00b
cmp eax, 0xcb
jne 0x42f083
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x42f06e
mov eax, dword [esi + 8]
test eax, eax
je 0x42f026
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x42f069
cmp eax, 2
je 0x42f06e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42f017
cmp eax, 3
je 0x42f04e
cmp eax, 1
jne 0x42f017
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x42f017
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x42f017
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0042f160
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x42f0a5
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0042f160
add esp, 4
pop edi
pop esi
ret

Function at 0x42f160
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
cmp dword [esi + 0x14], 0xcc
lea ebx, [esi + 0x78]
je 0x42f18f
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x42f212
jmp 0x42f1a0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x42f1e6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42f1c5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x42f229
cmp eax, dword [esi + 0x60]
jb 0x42f1a7
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x42f1a0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x42fa80
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x42faa2
push ebx
call fcn.00404710
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x42fb1e
mov eax, esi
sub eax, 1
je 0x42fb0a
sub eax, 1
je 0x42faf4
sub eax, 2
je 0x42fae0
push esi
push ecx
push dword [esp + 0x20]
call fcn.00414030
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00414030
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x42fb66
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x42fb86
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00414030
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x42fbb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x4bd354]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x42fd40
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42fbfe
test ebp, ebp
je 0x42fca6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x42fc1a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0042fa80
mov dword [esp + 0x10], eax
jmp 0x42fc34
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x42fca9
test cl, cl
je 0x42fc48
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x42fc83
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4bd354]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x42fca6
cmp dword [esp + 0x28], 0
jne 0x42fbf0
cmp cl, 0xd
je 0x42fcb2
cmp cl, 0xa
jne 0x42fbf0
dec esi
jmp 0x42fd23
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x42fd23
jmp 0x42fcb5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x42fcbd
dec esi
jmp 0x42fd23
cmp cl, 0xd
jne 0x42fd23
dec esi
cmp dword [edi], 0
je 0x42fcdb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0042fa80
mov dword [esp + 0x10], eax
jmp 0x42fcf1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x42fd23
cmp dword [edi], 0
je 0x42fd02
inc dword [ebx + 0xc]
jmp 0x42fd23
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x42fd50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x42ff0f
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x42fda9
test ecx, ecx
je 0x42fe6c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x42fdc5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0042fa80
mov dword [esp + 0x10], eax
jmp 0x42fddf
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x42fe6f
test ax, ax
je 0x42fdfd
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x42fe44
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x4bd354]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x42fe6f
cmp dword [esp + 0x2c], 0
jne 0x42fd93
cmp ax, 0xd
je 0x42fe76
cmp ax, 0xa
jne 0x42fd93
sub edi, 2
jmp 0x42feee
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x42feee
cmp ax, 0xa
jne 0x42fe81
sub edi, 2
jmp 0x42feee
cmp ax, 0xd
jne 0x42feee
sub edi, 2
cmp dword [ebp], 0
je 0x42fea3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0042fa80
mov dword [esp + 0x10], eax
jmp 0x42feb9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x42feee
cmp dword [ebp], 0
je 0x42fecd
add dword [ebx + 0xc], 2
jmp 0x42feee
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x42ff20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4bd354]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x430070
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42ff6c
test edi, edi
je 0x42ffdd
dec edi
push esi
push ebp
call fcn.00459890
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42ff7f
xor cl, cl
jmp 0x42ff81
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x42ffc4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4bd354]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x42ffdd
test eax, eax
jne 0x42ff62
cmp cl, 0xd
je 0x42ffe1
cmp cl, 0xa
jne 0x42ff62
dec esi
jmp 0x430053
test eax, eax
jne 0x430053
cmp cl, 0xa
jne 0x42ffe9
dec esi
jmp 0x430053
cmp cl, 0xd
jne 0x430053
dec esi
cmp dword [ebp + 4], 0
je 0x430008
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0042fa80
mov dword [esp + 0x20], eax
jmp 0x43001f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x430053
cmp dword [ebp + 4], 0
je 0x430031
inc dword [ebp + 0xc]
jmp 0x430053
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x430080
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x430197
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4300cd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x430156
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x43013f
sub eax, 1
je 0x430126
sub eax, 2
je 0x43010f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00414030
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00404710
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x430185
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4300f7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x43096a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x43097e
mov esi, ebx
jmp 0x430990
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x430a7e
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x430a73
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004010c0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x430a72
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x430a72
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x430a36
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x430a7e
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8

Function at 0x431613
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]
leave
ret 4
Function at 0x431656
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4bf720], 0
jne 0x431727
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x4bfc40
mov dword [0x4bf720], 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 [0x4bd354]
mov dword [0x4bfbe4], eax
mov dword [0x4bf724], 0x1f4
call esi
mov dword [0x4bfbf4], eax
mov eax, dword [0x4bf724]
add eax, eax
push eax
push 8
push dword [0x4bd354]
call esi
xor ebx, ebx
mov dword [0x4bfbf0], eax
push 0x4bfc00
mov dword [0x4bfbe8], ebx
mov dword [0x4bfbec], 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 [0x4bfc18], eax
call esi
mov dword [0x4bfc1c], eax
cmp dword [0x4bfc18], ebx
je 0x43171e
test eax, eax
je 0x43171e
lea eax, [esp + 0xc]
mov dword [0x4bfbf8], ebx
push eax
push ebx
push ebx
push 0x431b14
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4bfbfc], eax
jmp 0x431724
mov dword [0x4bfbf8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4319eb
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x431a90
cmp dword [esp + 0xc], 0
je 0x431a90
cmp dword [0x4bfbf8], 1
je 0x431a90
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x431a8f
push ebp
mov ebp, 0x4bfc00
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x4bfc1c]
mov dword [0x4bfc20], esi
mov dword [0x4bfc24], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x4bfc18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x4bfc1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431a87
push 0
push dword [0x4bfbfc]
mov dword [0x4bfbf8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8

Function at 0x431a94
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x431b10
cmp dword [0x4bfbf8], 1
je 0x431b10
push ebx
mov ebx, 0x4bfc00
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x4bfc1c]
and dword [0x4bfc24], 0
mov dword [0x4bfc20], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x4bfc18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x4bfc1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431b08
push 0
push dword [0x4bfbfc]
mov dword [0x4bfbf8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x43355c
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 0x4335f2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4335ef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4335ef
lea eax, [esi - 1]
push eax
push dword [0x4bf704]
call fcn.00413ef7
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4335f1
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4335df
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4335ea
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4335cf
jmp 0x4335ef
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x433698
push eax
call esi
test al, al
jns 0x433698
push 0x11
call esi
test al, al
js 0x433698
push 0x10
call esi
test al, al
js 0x433698
push 0x12
call esi
test al, al
js 0x433698
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x433698
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00430cdb
add esp, 0xc
test eax, eax
je 0x43366c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00430cdb
add esp, 0xc
test eax, eax
jne 0x433683
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4336d9
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004145a4
pop ecx
pop ecx
test eax, eax
je 0x4336d9
test ebp, ebp
je 0x4336bc
push 0x11
call esi
test al, al
js 0x4336b4
push 0x10
call esi
test al, al
js 0x4336b4
push 0x12
call esi
test al, al
jns 0x4336bc
push 1
push ebp
call fcn.004337fd
test ebx, ebx
je 0x4336d0
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4336d9
test edi, edi
je 0x4336d9
mov eax, dword [edi + 8]
jmp 0x4336db
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4