joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f573
Capabilities:
Parse pe header

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

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4018c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x403464], eax
mov edi, 0
mov ecx, 0xa
push edi
loop 0x4018dd
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [0x403464]
mov dword [ebp - 0x1c], edx
lea ecx, str.contents
mov dword [ebp - 8], ecx
lea eax, section..text
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x66
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x403464]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403474], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403474]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019a6
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40198d
pop ebp
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
push 0xb5
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov ecx, esi
call fcn.004c9ea0
cmp eax, 0xffffffff
jne 0x40a297
pop edi
xor ecx, ecx
pop esi
jmp fcn.0041d520
push 1
mov edx, eax
mov ecx, esi
call fcn.004c9f50
push 0
mov edx, 2
mov ecx, esi
call fcn.004c9860
mov ecx, esi
call fcn.004ca260
mov ecx, edi
call fcn.00409b90
pop edi
mov dword [0x59f390], 1
pop esi
ret

Function at 0x410d60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
mov ebx, edx
mov dword [esp + 8], esi
call fcn.004e2e20
test eax, eax
je 0x410d88
push 0x180
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x410d90
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebp
push edi
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d95
mov eax, dword [str.msagentchars_]
mov dword [edi], eax
mov ecx, dword [0x584254]
mov dword [edi + 4], ecx
mov edx, dword [0x584258]
mov dword [edi + 8], edx
mov eax, dword [0x58425c]
mov edx, 2
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.0041fd10
test eax, eax
jne 0x410dd8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x20]
push ecx
xor ebp, ebp
push ebp
mov byte [ebx], 0
call fcn.0053ec00
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x3e7
push ebp
push ebp
push ebp
push 1
push ebx
mov edx, str..acs
mov ecx, esi
call fcn.004849c0
cmp byte [ebx], 0
je 0x410ef5
test eax, eax
jle 0x410ef5
push 0x5a15c8
push 0x5a14c8
push 0x5a13c8
push 0x5a13c0
push ebx
inc ebp
call fcn.005706cf
mov eax, 0x5a14c8
mov edx, ebx
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410e44
mov eax, 0x5a15c8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410e55
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410e61
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x410ea9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x410ea0
cmp eax, 0x270f
jne 0x410ea0
push ecx
push ebx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x410f04
jmp 0x410ea9
dec eax
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x410ef9
mov edx, dword [esp + 0x20]
push edx
push 0
call fcn.0053ec00
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push 0
push 0x3e7
push 0
push 0
push 0
lea eax, [ebp + 1]
push eax
push ebx
mov edx, str..acs
call fcn.004849c0
cmp byte [ebx], 0
jne 0x410e15
mov eax, dword [esp + 0x1c]
cmp eax, 0x270f
je 0x410dce
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x41dc00
Capabilities:
Get graphical window text

Disassembly:
mov al, byte [0x5ad0f8]
sub esp, 0x7d0
test al, al
jne 0x41dc31
mov eax, dword [0x5b4314]
push 0x59c030
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, 7
call fcn.00537e30
add esp, 0x7d0
ret
push 0x5ad0f8
push 0x59c030
lea ecx, [esp + 8]
push 0x584610
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, 0xf
lea ecx, [esp]
call fcn.00524b30
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dc63
sub eax, edx
mov edx, dword [0x5b4314]
push esi
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, esi
jne 0x41dcd8
mov ecx, dword [0x5b4314]
push 0x3b5
lea eax, [esp + 0x3f0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esi, [esp + 0x3ec]
lea eax, [esp + 4]
push ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41dcce
test cl, cl
je 0x41dcca
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41dcce
add eax, 2
add esi, 2
test cl, cl
jne 0x41dca6
xor eax, eax
jmp 0x41dcd3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x41dcf4
mov ecx, dword [0x5b4314]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, 7
call fcn.00537e30
pop esi
add esp, 0x7d0
ret
Function at 0x41e0f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [0x5a16e4], 0
mov dword [0x5a16e0], 0
mov dword [0x5a16dc], 0
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ecx, 1
je 0x41e270
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41e155
test esi, esi
je 0x41e28c
mov dword [esi], 0x312e33
pop esi
add esp, 0x94
ret
cmp eax, ecx
jne 0x41e1c5
cmp dword [esp + 8], 4
jne 0x41e270
mov eax, dword [esp + 0xc]
cmp eax, 0x5a
jb 0x41e195
test esi, esi
je 0x41e286
mov dx, word [0x584648]
mov word [esi], dx
mov al, byte [0x58464a]
mov byte [esi + 2], al
mov dword [0x5a16dc], ecx
pop esi
add esp, 0x94
ret
cmp eax, ecx
jb 0x41e270
test esi, esi
je 0x41e286
mov dx, word [0x584644]
mov word [esi], dx
mov al, byte [0x584646]
mov byte [esi + 2], al
mov dword [0x5a16dc], ecx
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x41e270
cmp dword [esp + 8], 5
jb 0x41e24c
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x41e200
test esi, esi
je 0x41e1f2
mov edx, dword [str.2003]
mov dword [esi], edx
mov al, byte [0x584640]
mov byte [esi + 4], al
mov dword [0x5a16e4], ecx
pop esi
add esp, 0x94
ret
cmp eax, ecx
jb 0x41e228
test esi, esi
je 0x41e21a
mov dx, word [0x584638]
mov word [esi], dx
mov al, byte [0x58463a]
mov byte [esi + 2], al
mov dword [0x5a16e4], ecx
pop esi
add esp, 0x94
ret
test esi, esi
je 0x41e23e
mov dx, word [0x584634]
mov word [esi], dx
mov al, byte [0x584636]
mov byte [esi + 2], al
mov dword [0x5a16e4], ecx
pop esi
add esp, 0x94
ret
test esi, esi
je 0x41e262
mov dx, word [0x584630]
mov word [esi], dx
mov al, byte [0x584632]
mov byte [esi + 2], al
mov dword [0x5a16e0], ecx
pop esi
add esp, 0x94
ret
test esi, esi
je 0x41e286
mov dx, word [0x58462c]
mov word [esi], dx
mov al, byte [0x58462e]
mov byte [esi + 2], al
mov dword [0x5a16dc], ecx
pop esi
add esp, 0x94
ret
Function at 0x41fb20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
mov edx, ecx
test edx, edx
push esi
push edi
je 0x41fc88
cmp byte [edx], 0
je 0x41fc88
xor eax, eax
push eax
mov ecx, 0x40
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push edx
call fcn.005706cf
add esp, 0x14
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov esi, 0x59b258
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x41fc6f
add esi, 0xa
cmp esi, 0x59b33e
jl 0x41fb77
push 0
push 0
push 3
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fbcf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, 2
jne 0x41fc6f
push 0xfa
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x41fc6f
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005815d4
add esp, 8
test eax, eax
jne 0x41fc18
movzx eax, word [esp + 0x12]
cmp eax, 0x2000
je 0x41fc6f
cmp eax, 0xf000
je 0x41fc6f
push 0x40
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0057f36a
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x41fc7b
push esi
call fcn.0057ec1c
add esp, 4
test eax, eax
jne 0x41fc62
lea edx, [esp + 0xc]
push edx
push esi
call fcn.005811ee
add esp, 8
test eax, eax
jne 0x41fc7b
movzx eax, word [esp + 0x12]
cmp eax, 0x2000
je 0x41fc62
cmp eax, 0xf000
jne 0x41fc7b
test esi, esi
jl 0x41fc6f
push esi
call fcn.00577b9f
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jl 0x41fc88
push esi
call fcn.00577b9f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fd10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x4ec
push esi
mov esi, ecx
test esi, esi
mov dword [esp + 4], edx
je 0x41fe09
cmp byte [esi], 0
je 0x41fe09
push 0x2f
push esi
call fcn.00570260
add esp, 8
test eax, eax
je 0x41fd52
lea ecx, [ecx]
push 0x2f
push esi
mov byte [eax], 0x5c
call fcn.00570260
add esp, 8
test eax, eax
jne 0x41fd40
push 0x5846fc
push esi
call fcn.00571fd0
add esp, 8
test eax, eax
jne 0x41fe09
lea edx, [esp + 8]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41fd70
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fd81
sub eax, edx
test eax, eax
jle 0x41fe09
mov cl, byte [esp + eax + 7]
cmp cl, 0x5c
jne 0x41fd9e
mov byte [esp + eax + 8], 0x2e
jmp 0x41fda8
cmp cl, 0x3a
jne 0x41fdad
mov byte [esp + eax + 8], 0x5c
mov byte [esp + eax + 9], 0
push 0
lea eax, [esp + 0x3f4]
push eax
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.005706cf
add esp, 0x14
lea ecx, [esp + 0x3f0]
call fcn.0041fb20
test eax, eax
jne 0x41fe09
lea edx, [esp + 8]
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41fe09
test al, 0x10
mov al, byte [esp + 4]
je 0x41fdf6
test al, 2
jmp 0x41fdf8
test al, 1
je 0x41fdff
mov esi, 1
mov eax, esi
pop esi
add esp, 0x4ec
ret
xor eax, eax
pop esi
add esp, 0x4ec
ret

Function at 0x41fe20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40c
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
mov ebx, edx
test bl, 4
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, ecx
je 0x41fe81
mov edx, 1
call fcn.0041fd10
test eax, eax
je 0x41fe81
push esi
lea eax, [esp + 0x38]
push str._select___s_
push eax
call ebp
mov edx, dword [0x5b4314]
add esp, 0xc
push 5
push 0x5a9798
lea ecx, [esp + 0x3c]
push ecx
push str.explorer.exe
push str.open
push edx
call edi
cmp eax, 0x20
ja 0x41fee0
test bl, 2
je 0x41fe9f
mov eax, dword [0x5b4314]
push 5
push 0x5a9798
push 0
push esi
push 0
push eax
call edi
cmp eax, 0x20
ja 0x41fee0
test bl, 1
je 0x41ff07
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.005815d4
add esp, 8
test eax, eax
je 0x41fef0
mov dword [esp + 0x24], 0
push esi
push str.notepad.exe__s
lea eax, [esp + 0x3c]
push eax
call ebp
add esp, 0xc
push 0xa
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x41ff07
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40c
ret
cmp dword [esp + 0x24], 0xe678
jle 0x41febe
push esi
push str.write.exe__s
lea edx, [esp + 0x3c]
push edx
jmp 0x41fec9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40c
ret
Function at 0x41ff20
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
mov eax, dword [0x5b4314]
push ebx
push edi
mov edi, ecx
push eax
mov ebx, edx
mov dword [esp + 0x10], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41ff43
pop edi
pop ebx
add esp, 0xc
ret
push ebp
push esi
push 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x41fffa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x41fff3
push 0xa
push ebp
call fcn.00570260
mov esi, eax
add esp, 8
test esi, esi
je 0x41ff88
mov byte [esi], 0
xor eax, eax
mov ecx, 0xf9
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x3b5
stosw word es:[edi], ax
push ebp
push ebx
stosb byte es:[edi], al
call fcn.00570120
push 0xd
push ebx
call fcn.00570260
add esp, 0x14
test eax, eax
je 0x41ffb4
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
push 0
mov edx, ebx
call fcn.004c7e10
test eax, eax
je 0x41ffe2
test esi, esi
mov dword [esp + 0x10], eax
je 0x41ffeb
mov byte [esi], 0xa
mov al, byte [esi + 1]
inc esi
cmp al, 0xd
jne 0x41ffd9
inc esi
cmp byte [esi], 0
je 0x41ffeb
mov ebp, esi
jmp 0x41ff74
lea ecx, [esp + 0x10]
call fcn.004c8280
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420077
cmp byte [edi], 0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x420058
mov esi, 1
push esi
push 0x5a9798
push str._splayq_d.txt
push edi
call ebp
add esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.0041fd10
test eax, eax
je 0x420058
inc esi
push esi
push 0x5a9798
push str._splayq_d.txt
push edi
call ebp
add esp, 0x10
mov edx, 1
mov ecx, edi
call fcn.0041fd10
test eax, eax
jne 0x420036
push 0x40
push 0x584750
push edi
call fcn.00570ad0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x420081
lea ecx, [esp + 0x10]
call fcn.004c8280
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4200b6
lea esp, [esp]
mov ecx, dword [eax]
push ecx
push 0x584748
push ebx
call ebp
push esi
push ebx
call fcn.00572010
mov ecx, dword [esp + 0x24]
add esp, 0x14
call fcn.004c7f30
test eax, eax
mov dword [esp + 0x10], eax
jne 0x420090
push esi
call fcn.005709f9
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x421210
Capabilities:
Capture screenshot

Disassembly:
mov ecx, dword [0x5a2cb0]
xor eax, eax
test ecx, ecx
sete al
push esi
mov esi, dword [0x5b430c]
test esi, esi
mov dword [0x5a2cb0], eax
je 0x421245
lea ecx, [ecx]
mov ecx, esi
call fcn.00421120
test eax, eax
jne 0x421279
mov esi, dword [esi + 0xd9c]
test esi, esi
jne 0x421230
mov eax, dword [0x5a2cb4]
test eax, eax
je 0x421267
mov ecx, dword [0x5b4314]
push 0x7c
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x5a2cb4], 0
mov dword [0x5a2cb0], 0
xor ecx, ecx
pop esi
jmp fcn.00527d80
xor ecx, ecx
pop esi
jmp fcn.00527d80
Function at 0x421930
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, dword [esi + 4]
test edx, edx
mov dword [esp + 8], edi
jne 0x42194e
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
jge 0x42195b
mov dword [esp + 8], ecx
mov edi, ecx
mov eax, dword [esi + 0xc]
push ebx
cmp dword [esp + 0x40], eax
push ebp
jge 0x42196a
mov dword [esp + 0x44], eax
cmp esi, 0x5b32d8
jne 0x42197c
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], eax
mov edi, ecx
cmp edi, 1
jl 0x4219f4
mov ebx, dword [esp + 0x44]
cmp ebx, 1
jl 0x4219f4
lea eax, [esp + 0x28]
push eax
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [esp + 0x2c], edi
jne 0x4219a8
cmp dword [esp + 0x30], ebx
je 0x421af5
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x4219f4
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebp
mov ebx, eax
test ebx, ebx
push edi
jne 0x4219d8
mov edx, dword [0x5b4314]
push edx
jmp 0x4219ee
call ebp
mov ebp, eax
test ebp, ebp
jne 0x421a20
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x5b4314]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 4]
test eax, eax
je 0x421a02
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
mov dword [esi + 4], 0
mov byte [esi + 0x10], 0
call fcn.0041d520
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x421a47
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
call ebp
push ebx
call ebp
jmp 0x4219e7
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov ecx, dword [esi + 4]
push ecx
push ebp
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
jmp 0x421a70
xor edi, edi
mov edx, dword [esi + 0xc]
push 0xcc0020
push 0
push 0
push ebp
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
add edi, eax
cmp edi, ecx
jl 0x421a72
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0xc]
mov edx, dword [esp + 0x44]
add ecx, edi
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x421a70
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
push ebp
call edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call edi
push ebx
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [0x5b4314]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret 4
Function at 0x422640
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
call fcn.00542c90
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42277b
mov ecx, dword [esi + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x42277b
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
mov eax, dword [esi + 0x86c]
cmp edi, eax
je 0x422691
cmp edi, dword [esi + 0x870]
jne 0x42277a
cmp edi, eax
jne 0x422699
mov edx, dword [esi + 0x6d4]
jmp 0x42269f
mov edx, dword [esi + 0x6d8]
cmp edx, ebx
mov eax, dword [esi + 0xbbc]
mov dword [eax + 0x20e8], ebx
je 0x422716
mov eax, edx
mov ebp, 1
cmp dword [eax + 0x1c], ebp
je 0x4226ef
mov eax, dword [eax + 0x40]
cmp eax, ebx
jne 0x4226b6
cmp eax, dword [edx + 0x44]
jne 0x422712
mov eax, edx
lea esp, [esp]
mov dword [eax + 0x1c], ebx
mov eax, dword [eax + 0x40]
cmp eax, ebx
jne 0x4226d0
push 0x583b74
push ebx
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [eax + 0x40]
cmp ecx, ebx
je 0x4226c2
cmp dword [ecx], ebx
je 0x4226c2
mov dword [eax + 0x1c], ebx
mov dword [ecx + 0x1c], ebp
mov ecx, dword [ecx]
push ecx
mov edx, edi
mov ecx, esi
call fcn.004224d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x5aaa28
push 0x3e6
push 0xd
push edi
call esi
push 0x583b8c
push 0x5aaa28
call fcn.00570b40
add esp, 8
cmp eax, ebx
je 0x422743
mov byte [eax], bl
cmp byte [0x5aaa28], bl
je 0x422768
mov edx, 0x5aaa28
mov ecx, ebp
call fcn.00422380
push 0x583b74
push ebx
push 0xc
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ecx, ecx
call fcn.0041d520
push 0x583b74
push ebx
push 0xc
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x422780
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
call fcn.00542c90
mov esi, eax
test esi, esi
je 0x422864
mov ecx, dword [esi + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x422864
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
mov eax, dword [esi + 0x86c]
cmp edi, eax
je 0x4227c9
cmp edi, dword [esi + 0x870]
jne 0x422863
cmp edi, eax
jne 0x4227d1
mov eax, dword [esi + 0x6d4]
jmp 0x4227d7
mov eax, dword [esi + 0x6d8]
test eax, eax
mov ecx, dword [esi + 0xbbc]
mov dword [ecx + 0x20e8], 0
je 0x4227fe
jmp 0x4227f0
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x422863
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x4227f0
push 0x5aaa28
push 0x3e6
push 0xd
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x583b8c
push 0x5aaa28
call fcn.00570b40
add esp, 8
test eax, eax
je 0x42282a
mov byte [eax], 0
mov al, byte [0x5aaa28]
test al, al
je 0x422863
mov edx, 0x5aaa28
mov ecx, ebx
call fcn.00422380
cmp edi, dword [esi + 0x86c]
jne 0x42284f
mov esi, dword [esi + 0x6d4]
jmp 0x422855
mov esi, dword [esi + 0x6d8]
test esi, esi
je 0x422863
mov edx, dword [esi + 0x44]
mov dword [edx + 0x1c], 1
pop edi
pop esi
pop ebx
ret