joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434b30
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 0x434b57
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00434390
mov dword [esp + 4], eax
jmp 0x434b71
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
jne 0x434c24
mov cl, byte [esp + 0xc]
test cl, cl
js 0x434b96
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 0x434ba6
mov esi, 2
jmp 0x434bc2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x434bb5
mov esi, 3
jmp 0x434bc2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x434c10
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x434beb
push ebx
push eax
push edi
call fcn.00434390
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov 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
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x435972
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
call fcn.00442dfa
mov edi, eax
test edi, edi
je 0x435a54
cmp dword [edi + 0x14], esi
je 0x435a54
cmp dword [edi], 0xf
jne 0x435a54
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x435a54
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x435a49
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call fcn.00426ab0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x435a49
push ebp
lea edi, [eax - 1]
mov ebp, esi
push esi
push esi
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add edi, eax
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x4359ee
push dword [esp + 0x20]
mov dword [esp + 0x1c], edi
push edi
call fcn.0044a700
lea ecx, [edi + 1]
mov ebp, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
pop ecx
lea ebp, [ebp + eax*2]
mov word [ebp], cx
mov eax, ebp
mov ecx, dword [esp + 0x14]
add ebp, 2
inc esi
cmp esi, edi
jl 0x435a1c
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x435a5f
pop edi
pop esi
pop ebx
add esp, 0xc
jmp fcn.0044a7b0
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x435e99
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5070e0]
call fcn.00449b95
mov ebx, eax
test ebx, ebx
je 0x435efd
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x435ec2
push dword [esp + 0xc]
push ebx
call eax
jmp 0x435efd
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.0044a700
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.004185df
pop ecx
sub edi, eax
push edi
call fcn.0044a790
pop edi
pop esi
pop ebx
ret 8
Function at 0x4396b7
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x5070f0]
call fcn.00449a23
xor ebx, ebx
mov esi, eax
cmp dword [0x505224], ebx
jne 0x439789
xor ebp, ebp
inc ebp
mov dword [0x505224], ebp
call fcn.0043df10
mov edi, 0xa8
push edi
push ebx
push 0x505178
call fcn.00423330
add esp, 0xc
mov dword [0x505178], 0x13
lea eax, [esp + 0x10]
mov dword [0x50517c], edi
mov dword [0x505188], 0x439602
mov dword [0x50518c], 0x439947
push eax
mov dword [0x5051e0], 0x4395da
mov dword [0x5051e4], 0x43988c
mov dword [0x505184], 0x4395b5
mov dword [0x505208], 0x43961f
mov dword [0x505228], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x439789
cmp dword [esp + 0x20], ebp
je 0x439783
cmp dword [esp + 0x20], 2
jne 0x439789
cmp dword [esp + 0x14], 5
jb 0x439783
jne 0x439789
cmp dword [esp + 0x18], ebx
jne 0x439789
mov dword [0x505228], ebx
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.00443804
mov eax, dword [esp + 0x140]
push ebx
push dword [0x50368c]
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 ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x43985d
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x5070e0]
call fcn.00449bd3
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x43982e
push esi
call fcn.004451c9
test eax, eax
je 0x43982e
push 0
push 0
push esi
call fcn.00444e2a
jmp 0x439830
xor eax, eax
push 0x43930c
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x505178
push edi
push ebx
push ebp
mov dword [0x505220], eax
call fcn.0043d50c
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x43e790
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 0x43e7d3
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43e84f
cmp dword [0x506db8], 1
je 0x43e84f
push ebx
mov ebx, 0x506dc0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x506ddc]
and dword [0x506de4], 0
mov dword [0x506de0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x506dd8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x506ddc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43e847
push 0
push dword [0x506dbc]
mov dword [0x506db8], 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 0x43eb1b
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x5068e0], 0
jne 0x43ebec
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x507110
mov dword [0x5068e0], 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 [0x503688]
mov dword [0x506da4], eax
mov dword [0x5068e4], 0x1f4
call esi
mov dword [0x506db4], eax
mov eax, dword [0x5068e4]
add eax, eax
push eax
push 8
push dword [0x503688]
call esi
xor ebx, ebx
mov dword [0x506db0], eax
push 0x506dc0
mov dword [0x506da8], ebx
mov dword [0x506dac], 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 [0x506dd8], eax
call esi
mov dword [0x506ddc], eax
cmp dword [0x506dd8], ebx
je 0x43ebe3
test eax, eax
je 0x43ebe3
lea eax, [esp + 0xc]
mov dword [0x506db8], ebx
push eax
push ebx
push ebx
push 0x43e579
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x506dbc], eax
jmp 0x43ebe9
mov dword [0x506db8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x43ebee
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43ec93
cmp dword [esp + 0xc], 0
je 0x43ec93
cmp dword [0x506db8], 1
je 0x43ec93
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43ec92
push ebp
mov ebp, 0x506dc0
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x506ddc]
mov dword [0x506de0], esi
mov dword [0x506de4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x506dd8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x506ddc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43ec8a
push 0
push dword [0x506dbc]
mov dword [0x506db8], 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 0x43f075
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 0x43f1bd
xor ecx, ecx
cmp word [eax], cx
je 0x43f1bd
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00497fb6
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.004185df
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x43f0ce
cmp eax, 3
jne 0x43f108
cmp word [esp + 0xa], 0x3a
jne 0x43f108
cmp eax, 2
jne 0x43f0ec
lea eax, [esp + 8]
push 0x4bc398
push eax
call fcn.00498018
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43f1bd
push 0xfffffffffffffffe
pop edi
jmp 0x43f1bd
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x43f11d
cmp ax, bx
jne 0x43f127
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43f110
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x43f166
test byte [esp + 0x21c], 0x10
je 0x43f14d
push 0xfffffffffffffffe
pop edi
jmp 0x43f15d
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x43f1bb
cmp word [esp + 0x10], bp
jne 0x43f174
cmp word [esp + 0x12], bp
je 0x43f193
cmp word [esp + 0x10], bx
jne 0x43f182
cmp word [esp + 0x12], bx
je 0x43f193
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x43f1bb
cmp word [esp + 0x12], ax
jne 0x43f1bb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x43f1a8
test al, 0x10
je 0x43f1bb
jmp 0x43f1b8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43f1bb
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 0x43f1cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43f244
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00497fb6
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004185df
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x43f225
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43f222
cmp ecx, 0x5c
je 0x43f222
cmp ecx, 0x2f
jne 0x43f22f
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x43f20f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x43f246
xor eax, eax
leave
ret 4

Function at 0x43f24a
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x43f273
test byte [esp + 8], 2
je 0x43f267
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43f275
xor eax, eax
ret 8
Function at 0x43f2f8
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x506dec]
push esi
push edi
test eax, eax
jne 0x43f31e
push fcn.0043f427
push 0x10
push 0x258
call fcn.00449c67
mov dword [0x506dec], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.00449bd3
mov esi, eax
test esi, esi
je 0x43f41f
cmp dword [esp + 0x14], ebx
mov eax, 0x4bf268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x43f356
xor ecx, ecx
cmp word [ebp], cx
jne 0x43f35f
mov ebp, 0x4c1ebc
mov dword [esp + 0x1c], ebp
push eax
call fcn.004185df
push ebp
mov dword [esp + 0x20], eax
call fcn.004185df
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x503688]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x43f40c
push dword [esp + 0x14]
push ebp
call fcn.00497ff6
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x43f3bf
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x43f3bf
push 0x4bc398
push ebp
call fcn.00498018
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00498018
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43f3e4
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x43f3f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x43f3fa
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x503688]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x43f41e
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x506dec]
call fcn.00449b46
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x43fb63
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 0x43fccc
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x43fcaf
sub eax, 1
jne 0x43fccc
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0043fb1c
pop ecx
test eax, eax
je 0x43fbda
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x43fc10
inc edi
jmp 0x43fc10
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43fccc
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x43fcab
sub ecx, 1
je 0x43fca7
sub ecx, 1
je 0x43fc89
sub ecx, 1
je 0x43fc4d
sub ecx, 4
jne 0x43fccc
test eax, eax
jne 0x43fccc
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x43fccc
sub eax, 0
je 0x43fc7c
sub eax, 1
je 0x43fc6f
sub eax, 1
je 0x43fc68
sub eax, 1
jne 0x43fccc
push 0x69
pop esi
push 0x64
jmp 0x43fc81
push 0x5a
pop esi
push 0x5f
jmp 0x43fc74
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x43fccc
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x43fccc
sub eax, 0
je 0x43fca3
sub eax, 1
je 0x43fc9f
sub eax, 1
jne 0x43fccc
push 0x41
pop esi
push 0x3c
jmp 0x43fc81
push 0x3c
jmp 0x43fccb
push 0x32
jmp 0x43fccb
push 0x14
jmp 0x43fccb
push 5
jmp 0x43fccb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43fcc9
cmp eax, 0xa
je 0x43fcc5
cmp eax, 0x5a
jne 0x43fccc
push 0x28
jmp 0x43fccb
push 0x1e
jmp 0x43fccb
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x43ff64
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5070e4]
call fcn.00449b95
mov esi, eax
test esi, esi
je 0x440040
cmp dword [ebp + 0xc], 0
je 0x43ffb0
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x43ffa1
cmp dword [esi + 0x1c], 0
jne 0x43ffa1
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x440040
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x43ffce
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00440571
cmp dword [esi + 0x3c], 0xffffffff
je 0x43fff2
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x44000a
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x440025
test eax, eax
je 0x44001b
push 8
jmp 0x44002b
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x440036
test eax, eax
je 0x44002e
push 3
pop ebx
jmp 0x440036
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4406f1
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 0x440787
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x440784
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x440784
lea eax, [esi - 1]
push eax
push dword [0x5070e4]
call fcn.00449b95
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x440786
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x440774
mov edx, 0xfa01
cmp word [ecx], dx
je 0x44077f
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x440764
jmp 0x440784
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x44082d
push eax
call esi
test al, al
jns 0x44082d
push 0x11
call esi
test al, al
js 0x44082d
push 0x10
call esi
test al, al
js 0x44082d
push 0x12
call esi
test al, al
js 0x44082d
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x44082d
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00419ce3
add esp, 0xc
test eax, eax
je 0x440801
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00419ce3
add esp, 0xc
test eax, eax
jne 0x440818
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x44086e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00498049
pop ecx
pop ecx
test eax, eax
je 0x44086e
test ebp, ebp
je 0x440851
push 0x11
call esi
test al, al
js 0x440849
push 0x10
call esi
test al, al
js 0x440849
push 0x12
call esi
test al, al
jns 0x440851
push 1
push ebp
call fcn.0044087a
test ebx, ebx
je 0x440865
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x44086e
test edi, edi
je 0x44086e
mov eax, dword [edi + 8]
jmp 0x440870
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x443fd2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x444056
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x503688]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x44404e
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44403f
cmp dword [esp + 0x18], ebx
jne 0x44403f
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00443c23
mov ebp, eax
push edi
push 0
push dword [0x503688]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x44428a
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 0x44429e
mov esi, ebx
jmp 0x4442b0
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x44439e
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 0x444393
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.00423330
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 0x444392
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 0x444392
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 0x444356
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x44439e
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8