joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480050
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov al, byte [esi + 0x18]
test al, al
jne 0x480065
push 0
push 1
push 2
jmp 0x480072
cmp al, 1
jne 0x48007b
push 0x4e8
push 5
push 6
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
jne 0x480092
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket___Failure____d
jmp 0x48017a
mov al, byte [esi + 0x18]
push edi
test al, al
jne 0x4800a1
mov edi, 0x10
jmp 0x4800ae
cmp al, 1
mov edi, 0xe
je 0x4800ae
mov edi, dword [esp + 0x1c]
mov dx, word [esi + 0x20]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x48011c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x18]
push eax
push str.bind___Failure____d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi + 8]
push bind
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x480153
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
push eax
push str.listen___Failure____d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edx, dword [esi + 8]
push 8
push eax
push edx
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x480191
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAEventSelect___Failure____d
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
mov al, 1
pop esi
add esp, 0x10
ret 4

Function at 0x4888ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4888cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048b4ae
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4888ee
test byte [esp + 8], 2
je 0x4888ee
call fcn.0048b521
mov dword [eax], 0xd
call fcn.0048b52a
mov dword [eax], 5
jmp 0x4888c7
xor eax, eax
ret
Function at 0x491e8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d0a78
cmp edx, dword [eax]
je 0x491eae
add eax, 8
inc ecx
cmp eax, 0x4d0b08
jl 0x491e9f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d0a78]
jne 0x491fdc
mov eax, dword [0x4ea210]
cmp eax, 1
je 0x491fb6
test eax, eax
jne 0x491edf
cmp dword [0x4ce014], 1
je 0x491fb6
cmp edx, 0xfc
je 0x491fdc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x491f16
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00492840
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0048bec0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x491f59
lea eax, [ebp - 0x1a4]
push eax
call fcn.0048bec0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b18a0
push edi
call fcn.00489c00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00492840
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00492850
lea eax, [ebp - 0xa0]
push 0x4b1880
push eax
call fcn.00492850
push dword [esi + 0x4d0a7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00492850
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00493d1a
add esp, 0x2c
pop edi
jmp 0x491fdc
lea eax, [ebp + 8]
lea esi, [esi + 0x4d0a7c]
push 0
push eax
push dword [esi]
call fcn.0048bec0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x497c00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00488a40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x497ccb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x497ccb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x497c7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x497c89
or bh, 8
and edi, 0x8000000
je 0x497ca4
mov eax, dword [0x4ebcbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x497ccb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4980a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4980cb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4980ef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49810a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x499bc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x499be8
cmp dword [edi + 0x3c], 0
jne 0x499be8
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a2a3c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00499c15
pop edi
pop esi
pop ebx
ret 8

Function at 0x49b211
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49b249
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049debd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049de95
jmp 0x49b255
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49c83f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c881
call fcn.004a2a3c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c881
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c878
xor eax, eax
jmp 0x49c889
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c88f
pop edi
pop esi
pop ebx
ret 4
Function at 0x40865e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450dcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004109f0
mov byte [ebp - 4], 2
push str.SELECT__FROM_MATERIELCLASS_WHERE_NAME
lea ecx, [ebp - 0x18]
call fcn.00446e6d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00446f13
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x46abdc
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00446f79
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00446e1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00446ce4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00446ce4
mov byte [ebp - 4], 5
push 7
push 0
push 0x46abe0
lea ecx, [ebp - 0x1c]
call fcn.00404f50
push 1
mov ecx, 0x4720c0
call fcn.00404eb0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405940
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004051f0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405900
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405ae0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404c90
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x4087e5
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404c90
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x408817
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404cd0
jmp 0x40888c
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00410a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00446ce4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00446ce4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40eb5b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451a52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004109f0
mov byte [ebp - 4], 2
push str.SELECT__FROM_MATERIEL_WHERE_NAME
lea ecx, [ebp - 0x18]
call fcn.00446e6d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00446f13
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x46b47c
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00446f79
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00446e1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00446ce4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00446ce4
mov byte [ebp - 4], 5
push 7
push 0
push 0x46b480
lea ecx, [ebp - 0x1c]
call fcn.00404f50
push 1
mov ecx, 0x4720c0
call fcn.00404eb0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405940
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004051f0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405900
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405ae0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404c90
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x40ece2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404c90
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x40ed14
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404cd0
jmp 0x40ed89
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00410a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00446ce4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00446ce4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415dc1
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004109f0
mov byte [ebp - 4], 2
push str.SELECT__FROM_PAYMODE_WHERE_NAME
lea ecx, [ebp - 0x18]
call fcn.00446e6d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00446f13
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x46bef4
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00446f79
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00446e1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00446ce4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00446ce4
mov byte [ebp - 4], 5
push 7
push 0
push 0x46bef8
lea ecx, [ebp - 0x1c]
call fcn.00404f50
push 1
mov ecx, 0x4720c0
call fcn.00404eb0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405940
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004051f0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405900
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405ae0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404c90
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x415f48
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404c90
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x415f7a
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404cd0
jmp 0x415fef
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00410a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00446ce4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00446ce4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a3f7
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455814
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004109f0
mov byte [ebp - 4], 2
push str.SELECT__FROM_USERS_WHERE_NAME
lea ecx, [ebp - 0x18]
call fcn.00446e6d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00446f13
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x46dd78
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00446f79
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00446e1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00446ce4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00446ce4
mov byte [ebp - 4], 5
push 7
push 0
push 0x46dd7c
lea ecx, [ebp - 0x1c]
call fcn.00404f50
push 1
mov ecx, 0x4720c0
call fcn.00404eb0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405940
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004051f0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405900
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405ae0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404c90
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x42a57e
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404c90
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x42a5b0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f20
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404cd0
jmp 0x42a625
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00410a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00446ce4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00446ce4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x440ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00432c50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x440f9b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x440f9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x440f4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x440f59
or bh, 8
and edi, 0x8000000
je 0x440f74
mov eax, dword [0x475a1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x440f9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret