joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f180
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x42f1a1
push esi
call fcn.0042eb10
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 0x42f215
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x42f202
dec ecx
je 0x42f1ed
sub ecx, 2
je 0x42f1da
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 0x42f25a
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 0x42f27b
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
Function at 0x42f2a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x45af5c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x42f424
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42f2ee
test ebp, ebp
je 0x42f390
dec ebp
cmp dword [ebx + 4], 0
je 0x42f307
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0042f180
mov dword [esp + 0x14], eax
jmp 0x42f321
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x42f390
test cl, cl
je 0x42f335
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x42f370
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x45af5c]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x42f390
cmp dword [esp + 0x2c], 0
jne 0x42f2e0
cmp cl, 0xd
je 0x42f397
cmp cl, 0xa
jne 0x42f2e0
dec esi
jmp 0x42f407
cmp dword [esp + 0x2c], 0
jne 0x42f407
cmp cl, 0xa
jne 0x42f39f
dec esi
jmp 0x42f407
cmp cl, 0xd
jne 0x42f407
dec esi
cmp dword [ebx + 4], 0
je 0x42f3be
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0042f180
mov dword [esp + 0x14], eax
jmp 0x42f3d4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x42f407
cmp dword [ebx + 4], 0
je 0x42f3e6
inc dword [ebx + 0xc]
jmp 0x42f407
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
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 0x42f430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x45af5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42f5dd
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x42f484
test ebp, ebp
je 0x42f53d
dec ebp
cmp dword [ebx + 4], 0
je 0x42f49d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0042f180
mov dword [esp + 0x14], eax
jmp 0x42f4b7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x42f53d
test ax, ax
je 0x42f4d1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x42f518
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x45af5c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x42f53d
cmp dword [esp + 0x30], 0
jne 0x42f476
cmp ax, 0xd
je 0x42f544
cmp ax, 0xa
jne 0x42f476
sub edi, 2
jmp 0x42f5bc
cmp dword [esp + 0x30], 0
jne 0x42f5bc
cmp ax, 0xa
jne 0x42f54f
sub edi, 2
jmp 0x42f5bc
cmp ax, 0xd
jne 0x42f5bc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x42f571
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0042f180
mov dword [esp + 0x14], eax
jmp 0x42f587
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x42f5bc
cmp dword [ebx + 4], 0
je 0x42f59b
add dword [ebx + 0xc], 2
jmp 0x42f5bc
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x42f5f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x45af5c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x42f740
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 0x42f63c
test edi, edi
je 0x42f6ad
dec edi
push esi
push ebp
call fcn.0042f7c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42f64f
xor cl, cl
jmp 0x42f651
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 0x42f694
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x45af5c]
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 0x42f6ad
test eax, eax
jne 0x42f632
cmp cl, 0xd
je 0x42f6b1
cmp cl, 0xa
jne 0x42f632
dec esi
jmp 0x42f723
test eax, eax
jne 0x42f723
cmp cl, 0xa
jne 0x42f6b9
dec esi
jmp 0x42f723
cmp cl, 0xd
jne 0x42f723
dec esi
cmp dword [ebp + 4], 0
je 0x42f6d8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0042f180
mov dword [esp + 0x20], eax
jmp 0x42f6ef
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 0x42f723
cmp dword [ebp + 4], 0
je 0x42f701
inc dword [ebp + 0xc]
jmp 0x42f723
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 0x42f7c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x42f7e7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0042f180
mov dword [esp + 4], eax
jmp 0x42f801
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x42f80d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x42f829
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x42f839
mov esi, 2
jmp 0x42f855
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x42f848
mov esi, 3
jmp 0x42f855
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x42f8b2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x42f884
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0042f180
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x43078c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x45b9a4]
call fcn.0043ba38
mov ebx, eax
test ebx, ebx
je 0x4307f0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4307b5
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4307f0
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.0043d780
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0043d850
pop edi
pop esi
pop ebx
ret 8
Function at 0x4322c1
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x45b9a0]
call fcn.0043b9cf
xor ebp, ebp
mov esi, eax
cmp dword [0x45b580], ebp
jne 0x43239d
xor ebx, ebx
inc ebx
mov dword [0x45b580], ebx
call fcn.00433440
mov edi, 0xa4
push edi
push ebp
push 0x45b588
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x45b588], 0x13
lea eax, [esp + 0x10]
mov dword [0x45b58c], edi
mov dword [0x45b598], 0x43220c
mov dword [0x45b59c], 0x432557
push eax
mov dword [0x45b5f0], 0x4321e7
mov dword [0x45b5f4], 0x4324a2
mov dword [0x45b594], 0x4321c2
mov dword [0x45b618], 0x432227
mov dword [0x45b62c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43239d
cmp dword [esp + 0x20], ebx
je 0x432385
cmp dword [esp + 0x20], 2
jne 0x43239d
cmp dword [esp + 0x14], 5
jae 0x43238d
mov dword [0x45b62c], ebp
jmp 0x43239d
jne 0x43239d
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x45b62c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0043682a
mov eax, dword [esp + 0x140]
push ebp
push dword [0x45af60]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x432473
push dword [esp + 0x128]
push dword [0x45b9a4]
call fcn.0043ba60
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x432442
push edi
call fcn.0043c6f6
test eax, eax
je 0x432442
push ebp
push ebp
push edi
call fcn.0043c365
mov dword [esi + 0x18], eax
jmp 0x432445
mov dword [esi + 0x18], ebp
push 0x431f11
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x45b588
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x45b584], eax
call fcn.00433350
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x433ba8
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x433cf0
xor ecx, ecx
cmp word [eax], cx
je 0x433cf0
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x433c01
cmp eax, 3
jne 0x433c3b
cmp word [esp + 0xa], 0x3a
jne 0x433c3b
cmp eax, 2
jne 0x433c1f
lea eax, [esp + 8]
push 0x4555e0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x433cf0
push 0xfffffffffffffffe
pop edi
jmp 0x433cf0
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x433c50
cmp ax, bx
jne 0x433c5a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x433c43
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x433c99
test byte [esp + 0x21c], 0x10
je 0x433c80
push 0xfffffffffffffffe
pop edi
jmp 0x433c90
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x433cee
cmp word [esp + 0x10], bp
jne 0x433ca7
cmp word [esp + 0x12], bp
je 0x433cc6
cmp word [esp + 0x10], bx
jne 0x433cb5
cmp word [esp + 0x12], bx
je 0x433cc6
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x433cee
cmp word [esp + 0x12], ax
jne 0x433cee
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x433cdb
test al, 0x10
je 0x433cee
jmp 0x433ceb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x433cee
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x433d7e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x433df6
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x433dd7
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x433dd4
cmp ecx, 0x5c
je 0x433dd4
cmp ecx, 0x2f
jne 0x433de1
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x433dc1
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x433df8
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x433e70
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x45b6e8]
push esi
test eax, eax
jne 0x433e95
push fcn.00433f9d
push 0x10
push 0x258
call fcn.0043bae1
mov dword [0x45b6e8], eax
push dword [esp + 0xc]
push eax
call fcn.0043ba60
mov esi, eax
test esi, esi
je 0x433f96
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x433eb7
mov edi, 0x441098
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x433ec7
xor eax, eax
cmp word [ebx], ax
jne 0x433ecc
mov ebx, 0x4555e4
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 [0x45af5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x433f7d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x433f2d
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x433f31
push 0x4555e0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x433f31
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 0x433f55
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x433f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x433f69
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x45af5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x433f94
cmp dword [esp + 0x14], 0xffffffff
je 0x433f88
mov esi, dword [esp + 0x14]
push esi
push dword [0x45b6e8]
call fcn.0043b9fe
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x434086
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4340a6
cmp dword [esp + 8], 0
je 0x4340a6
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4340a8
xor eax, eax
ret 8
Function at 0x43559a
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 0x435632
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x43562f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x43562f
lea eax, [esi - 1]
push eax
push dword [0x45b9f8]
call fcn.0043ba38
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x435631
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x435626
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x435719
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x43560c
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4356d8
push eax
call esi
test al, al
jns 0x4356d8
push 0x11
call esi
test al, al
js 0x4356d8
push 0x10
call esi
test al, al
js 0x4356d8
push 0x12
call esi
test al, al
js 0x4356d8
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4356d8
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4356ac
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4356c3
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x435723
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x435723
test ebp, ebp
je 0x4356fc
push 0x11
call esi
test al, al
js 0x4356f4
push 0x10
call esi
test al, al
js 0x4356f4
push 0x12
call esi
test al, al
jns 0x4356fc
push 1
push ebp
call fcn.0043572f
test ebx, ebx
je 0x435710
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x435723
test edi, edi
je 0x435723
mov eax, dword [edi + 8]
jmp 0x435725
and dword [esp + 0x14], 0
jmp 0x435631
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x436baf
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 0x436bc3
mov esi, ebx
jmp 0x436bcd
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x436cbe
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 0x436cb3
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 sub.MSVCRT.dll_memset
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 0x436cb2
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 0x436cb2
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x436c7b
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x436cbe
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 0x4384a0
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 0x4384d2
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 0x4384cd
cmp dword [esp + 0xc], esi
je 0x4384e9
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