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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
xor esi, esi
push eax
push esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0xc]
inc eax
push eax
mov dword [esp + 0x10], eax
call fcn.004191de
add esp, 4
lea ecx, [esp + 0xc]
mov ebp, eax
push ecx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x405d7b
cmp ebp, esi
je 0x405d7b
push ebx
jmp 0x405d10
mov edx, dword [ebp + 0x19c]
push edx
push edi
call fcn.00404a10
add esp, 8
lea esi, [ebp + 0x1ac]
lea ebx, [ebp + 0x1d8]
lea esp, [esp]
push ebx
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x20]
push str.IP:__s_r_nMask:_s_r_n
push ecx
call fcn.0041861e
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d50
sub eax, edx
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esi]
test esi, esi
jne 0x405d30
mov ebp, dword [ebp]
test ebp, ebp
jne 0x405d10
pop ebx
push ebp
call fcn.00419101
mov ecx, dword [esp + 0x118]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret
Function at 0x406620
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0x42c400
lea eax, [esp + 0xc]
push str._s_bk_img_bk.ini
push eax
mov dword [esp + 0x10], 0
call fcn.0041861e
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 3
push closesocket
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406690
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret
push 0x104
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00418570
add esp, 0xc
push 0
lea eax, [esp + 8]
push eax
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4066f8
lea eax, [esp + 8]
push 0
push eax
call fcn.00406020
add esp, 8
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041869b
add esp, 0x10c
ret
Function at 0x407640
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
mov dword [esp + 4], 0
je 0x40770d
push ebx
push ebp
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call fcn.00407300
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esi + eax*4 + 0x10], edx
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, 0x1c
lea esp, [esp]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
push edi
push edx
call ebx
add edi, 4
sub ebp, 1
jne 0x4076b0
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x80]
push ecx
push edx
call ebx
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x84]
push ecx
push edx
call ebx
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x88]
push ecx
push edx
call ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret 8
push 0x4269c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
add esp, 0x14
ret 8

Function at 0x407780
Capabilities:
Get file size
Print debug messages

Disassembly:
sub esp, 0x16c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x168], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
lea eax, [esp + 4]
push eax
call fcn.00407280
test eax, eax
jne 0x4077af
push 0x42698c
jmp 0x40781d
mov edx, dword [esi + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
lea eax, [esp + 0x70]
push str._sSetting_s.rcz
push eax
call fcn.0041861e
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4077f9
push 0x426a08
jmp 0x40781d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407811
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
push 0x4269f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x16c]
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x16c
ret
Function at 0x408510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x18], 0x426b90
mov dword [esp + 0x1c], 0x426b88
mov dword [esp + 0x20], 0x426b80
mov dword [esp + 0x24], 0x426b78
mov dword [esp + 0x28], 0x426b70
mov dword [esp + 0x2c], 0x426b64
mov dword [esp + 0x30], 0x426b5c
mov dword [esp + 0x34], 0x426b50
mov dword [esp + 0x38], 0x426b48
mov dword [esp + 0x3c], 0x426b3c
mov dword [esp + 0x40], 0x426b30
mov dword [esp + 0x44], 0x426b24
mov dword [esp + 0x48], 0x426b18
mov dword [esp + 0x4c], 0x426b0c
mov dword [esp + 0x50], 0x426b00
mov dword [esp + 0x54], 0x426af4
mov dword [esp + 0x58], 0x426ae4
lea edi, [ebp + 1]
mov dword [esp + 0x10], 0x16
lea ebx, [esp + 0x18]
lea esi, [ecx + 0x8c0]
mov dword [esp + 0x14], 0x11
mov edi, edi
mov eax, dword [esp + 0x60]
push 0
push 0x5000000b
mov dword [esi - 4], 5
push str.BUTTON
lea ecx, [esi - 0x28]
lea edx, [edi + 0x458]
mov dword [ecx], edx
mov edx, dword [ebx]
push edx
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x74]
push 0x14
mov dword [esi], eax
mov eax, dword [esp + 0x24]
push 0x6e
push eax
lea edx, [ebp + 0x9b]
push edx
call fcn.00408050
mov eax, edi
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x40861a
xor ebp, ebp
add dword [esp + 0x10], 0x1c
jmp 0x40861d
add ebp, 0x78
add ebx, 4
add esi, 0x4c
inc edi
sub dword [esp + 0x14], 1
jne 0x4085c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
Function at 0x408850
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
push 1
push 0x50800040
push str.COMBOBOX
push 0x42652d
push 0x64
push 0x1ab
mov esi, ecx
mov eax, 3
lea ecx, [esi + 0xe94]
mov dword [esi + 0xeb8], eax
push 0xfd
push 0x46
mov byte [esp + 0x68], 0xaa
mov byte [esp + 0x69], 0
mov byte [esp + 0x6a], 1
mov byte [esp + 0x6b], 2
mov byte [esp + 0x6c], al
mov byte [esp + 0x6d], 4
mov byte [esp + 0x6e], 6
mov byte [esp + 0x6f], 7
mov byte [esp + 0x70], 8
mov byte [esp + 0x71], 9
mov byte [esp + 0x72], 0xa
mov byte [esp + 0x73], 0xb
mov byte [esp + 0x74], 0xc
mov byte [esp + 0x75], 0xd
mov dword [esp + 0x30], 0x426c38
mov dword [esp + 0x34], 0x426c30
mov dword [esp + 0x38], 0x426c28
mov dword [esp + 0x3c], 0x426c20
mov dword [esp + 0x40], 0x426c18
mov dword [esp + 0x44], 0x426c10
mov dword [esp + 0x48], 0x426c08
mov dword [esp + 0x4c], 0x426c00
mov dword [esp + 0x50], 0x426bf8
mov dword [esp + 0x54], 0x426bf0
mov dword [esp + 0x58], 0x426be8
mov dword [esp + 0x5c], 0x426be0
mov dword [esp + 0x60], 0x426bd8
mov dword [esp + 0x64], 0x426bd0
mov dword [ecx + 0x1c], edi
mov dword [ecx], 0x46f
mov dword [ecx + 0x28], ebx
call fcn.00408050
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xeb4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
call ebp
push 0
push 0x50800000
push str.COMBOBOX
push 0x42652d
push 0x96
push 0x49
lea ecx, [esi + 0xec4]
mov dword [esi + 0xee8], 2
push 0x113
push 0x46
mov dword [ecx + 0x1c], edi
mov dword [ecx], 0x470
mov dword [ecx + 0x28], ebx
call fcn.00408050
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0xee4]
push 0
push edx
push 0x30
push eax
call ebp
xor edi, edi
lea ebx, [esi + 0xf54]
mov edx, dword [esp + edi*4 + 0x10]
movzx ecx, byte [esp + edi + 0x48]
push edx
push 0
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov eax, dword [esi + 0xee4]
push 0x143
push eax
call ebp
inc edi
add ebx, 8
cmp edi, 0xe
jl 0x4089d2
mov ecx, dword [esi + 0xee4]
push 0
push 0
push 0x14e
push ecx
call ebp
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
push 0
push 0x50802000
push str.EDIT
push str.8500
push 0x12
push 0x28
lea ecx, [esi + 0xef4]
mov dword [esi + 0xf18], 4
push 0x113
push 0xd7
mov dword [ecx + 0x1c], edi
mov dword [ecx], 0x471
mov dword [ecx + 0x28], ebx
call fcn.00408050
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0xf14]
push 0
push edx
push 0x30
push eax
call ebp
push 0
push 0x5000000b
push str.BUTTON
push 0x426b98
push 0xf
push 0x32
lea ecx, [esi + 0xf24]
mov dword [esi + 0xf48], 6
push 0x115
push 0x118
mov dword [ecx + 0x1c], edi
mov dword [ecx], 0x472
mov dword [ecx + 0x28], ebx
call fcn.00408050
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0xf44]
push 0
push ecx
push 0x30
push edx
call ebp
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x4c
ret 8
Function at 0x40b3a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
mov ecx, dword [esi + 0x14]
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
mov eax, dword [esi + 0x10]
test al, 1
je 0x40b3e3
push 0xc8c8c8
jmp 0x40b408
test al, 0x10
je 0x40b3ee
push 0x96fa96
jmp 0x40b408
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40b403
push 0x323232
jmp 0x40b408
push 0xf0f0f0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
mov eax, dword [esi + 0x18]
push ebx
lea edi, [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_FrameRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi + 0x18]
push 0x25
push edi
push ebp
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x108
ret 8

Function at 0x40b920
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, ecx
mov eax, dword [ebx + 0xf14]
push 0x78
lea ebp, [ebx + 0xfcc]
push ebp
push eax
call esi
push ebp
mov dword [ebx + 0x104c], eax
call fcn.00419671
add esp, 4
cmp eax, 0x2134
mov dword [ebx + 0x1050], eax
jge 0x40b963
mov dword [ebx + 0x1050], 0x2134
mov ecx, dword [ebx + 0xee4]
push 0
push 0
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx + 0x1054], eax
cmp eax, 0xffffffff
jne 0x40b98e
mov dword [ebx + 0x1054], 0
mov edx, dword [ebx + 0xeb4]
push 0x80
push ebp
push edx
call esi
mov dword [ebx + 0x104c], eax
test eax, eax
jne 0x40b9e0
push edi
push 0x78
push eax
push ebp
call fcn.00418570
mov ecx, 9
mov esi, 0x426d30
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 1]
pop edi
lea esp, [esp]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x40b9d0
sub ebp, ecx
mov dword [ebx + 0x104c], ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x40bec0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
push 0x104
lea eax, [esp + 0x28]
mov edi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ebp, [esi + 0x1c]
mov ebx, eax
xor eax, eax
push ebp
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 4]
push edx
mov ecx, edi
call fcn.0040b460
cmp dword [eax + 0x2c], 1
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
jne 0x40bf4d
push 0xff
jmp 0x40bf52
push 0xffffff
call edi
mov ecx, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
call edi
mov ecx, dword [esi + 0x18]
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
jle 0x40bfc0
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0x24
lea ecx, [esp + 0x18]
push ecx
inc eax
push ebx
lea edx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x11c
ret 8
Function at 0x40cfc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
push 0x104
lea eax, [esp + 0x28]
mov edi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [edi + 0x4c]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ebp, [esi + 0x1c]
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 4]
push edx
mov ecx, edi
call fcn.0040cee0
cmp dword [eax + 0x2c], 1
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
jne 0x40d067
push 0xff
jmp 0x40d06c
push 0xffffff
call edi
mov ecx, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
call edi
mov ecx, dword [esi + 0x18]
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
jle 0x40d0da
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0x24
lea ecx, [esp + 0x18]
push ecx
inc eax
push ebx
lea edx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x11c
ret 8
Function at 0x40dcb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push esi
push edi
push eax
lea eax, [esp + 0x14]
push str._sdata.txt
xor esi, esi
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call fcn.0041861e
add esp, 0xc
push esi
push 0x80
push 3
push esi
push esi
push closesocket
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dd6e
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, esi
je 0x40dd59
push ebp
lea ebp, [ebx + 1]
push ebp
call fcn.0041842a
push ebp
mov esi, eax
push 0
push esi
call fcn.00418570
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0
pop ebp
jbe 0x40dd59
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x60]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test esi, esi
je 0x40dd6e
push esi
call fcn.00418b82
add esp, 4
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x110
ret 4

Function at 0x40dd90
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push ebx
push ebp
push eax
lea eax, [esp + 0x10]
push str._sdata.txt
push eax
mov ebp, ecx
mov dword [esp + 0x14], 0
call fcn.0041861e
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40de4c
mov edx, dword [ebp + 0x60]
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
inc esi
cmp esi, 5
jae 0x40de0a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40de4b
push edi
push esi
call fcn.0041842a
mov ecx, dword [ebp + 0x60]
add esp, 4
mov edi, eax
lea eax, [esi - 1]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea edx, [esp + 0x14]
push edx
dec esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40de4a
push edi
call fcn.00418b82
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret 4
Function at 0x40de70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
mov edi, ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [edi + 0x60]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
push eax
push ecx
mov dword [esp + 0x1c], 0x427018
mov dword [esp + 0x20], 0x42700c
mov dword [esp + 0x24], 0x427004
mov dword [esp + 0x28], 0x426ffc
mov dword [esp + 0x2c], 0x426ff4
mov dword [esp + 0x30], 0x426fec
mov dword [esp + 0x34], 0x426fe0
mov dword [esp + 0x38], 0x426fd8
mov dword [esp + 0x3c], 0x426fd0
mov dword [esp + 0x40], 0x426fc4
mov dword [esp + 0x44], 0x426fbc
mov dword [esp + 0x48], 0x426fb4
mov dword [esp + 0x4c], 0x426fac
mov dword [esp + 0x50], 0x426fa4
mov dword [esp + 0x54], 0x426f98
mov dword [esp + 0x58], 0x426f8c
mov dword [esp + 0x5c], 0x426f80
mov dword [esp + 0x60], 0x426f74
mov dword [esp + 0x64], 0x426f68
mov dword [esp + 0x68], 0x426f5c
mov dword [esp + 0x6c], 0x426f54
mov dword [esp + 0x70], 0x426f4c
mov dword [esp + 0x74], 0x426f44
mov dword [esp + 0x78], 0x426f38
mov dword [esp + 0x7c], 0x426f2c
mov dword [esp + 0x80], 0x426f24
mov dword [esp + 0x84], 0x426f1c
mov dword [esp + 0x88], 0x426f14
call dword [sym.imp.USER32.dll_GetClientRect]
xor esi, esi
jmp 0x40df90
mov eax, dword [esp + 0x98]
push 0
lea edx, [esi + esi*2]
shl edx, 4
lea ecx, [edx + edi + 0x68]
push 0x5000000b
push str.BUTTON
lea edx, [esi + 0x42e]
mov dword [ecx], edx
mov edx, dword [esp + esi*4 + 0x20]
push edx
mov edx, dword [esp + 0x9c]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x20]
push 0x14
mov dword [ecx + 0x28], eax
push 0x55
lea eax, [ebx + 2]
push eax
lea eax, [edx + ebp + 0x14]
push eax
call fcn.00408050
cmp esi, 0xd
jne 0x40dfe9
add ebp, 0x56
xor ebx, ebx
jmp 0x40dfec
add ebx, 0x14
inc esi
cmp esi, 0x1c
jl 0x40df90
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [edi + 0x88]
mov ebx, 0x1c
mov ecx, dword [edi + 0x4c]
mov edx, dword [esi]
push 0
push ecx
push 0x30
push edx
call ebp
add esi, 0x30
sub ebx, 1
jne 0x40e003
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x10]
push ebx
push 0x5000000b
push str.BUTTON
lea ecx, [edi + 0x5a8]
push 0x426f0c
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0xa0]
push 0x12
mov dword [ecx + 0x28], edx
mov edx, dword [esp + 0xa0]
push 0x41
add eax, 5
push eax
add edx, 0xffffffbf
push edx
mov dword [ecx], 0x44b
call fcn.00408050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 4
Function at 0x40e250
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x104
lea eax, [esp + 0x24]
mov edi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [edi + 0x4c]
mov ebp, eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 4], 0x44b
jne 0x40e315
mov eax, dword [esi + 0x10]
test al, 1
je 0x40e2ca
push 0xc8c8c8
jmp 0x40e2ef
test al, 0x10
je 0x40e2d5
push 0x96fa96
jmp 0x40e2ef
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40e2ea
push 0x323232
jmp 0x40e2ef
push 0xc8c800
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
mov eax, dword [esi + 0x18]
push ebx
lea edi, [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x25
push edi
jmp 0x40e3c5
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x1c]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 4]
push eax
mov ecx, edi
call fcn.0040e170
cmp dword [eax + 0x2c], 1
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
jne 0x40e367
push 0xff
call edi
mov edx, dword [esi + 0x18]
mov ebx, eax
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
jmp 0x40e37a
push 0xffffff
call edi
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ebx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push 0
call edi
mov edi, eax
mov eax, dword [esi + 0x18]
push edi
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
push edi
call ebx
test ebp, ebp
jle 0x40e3d5
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x1c]
inc edx
push 0x24
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
push eax
mov edx, dword [esi + 0x18]
push ebp
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x118
ret 8