joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424112
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 0x14]
push esi
test eax, eax
mov dword [ebp - 4], eax
je 0x424181
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov eax, dword [eax + 0x2120]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [esi + 1]
push 0
push eax
call sub.WSOCK32.dll_select
cmp eax, 1
jl 0x424187
push 0
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x424187
add dword [ebp + 0x10], eax
sub dword [ebp - 4], eax
jne 0x424129
mov eax, dword [ebp + 0x14]
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x424184

Function at 0x42418c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov eax, dword [eax + 0x2120]
mov dword [ebp - 0x108], esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x10c], 1
call sub.WSOCK32.dll_select
cmp eax, 1
jge 0x4241db
or eax, 0xffffffff
jmp 0x4241e9
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call sub.WSOCK32.dll_recv
pop esi
leave
ret

Function at 0x4241ec
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0xc]
push esi
push 1
lea edx, [ebp - 8]
pop esi
xor ecx, ecx
push edx
push ecx
mov dword [ebp - 8], ecx
push ecx
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0x10c]
inc eax
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10c], esi
call sub.WSOCK32.dll_select
xor ecx, ecx
cmp eax, esi
setge cl
mov eax, ecx
pop esi
leave
ret

Function at 0x424230
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0xc]
push esi
push 1
lea edx, [ebp - 8]
pop esi
xor ecx, ecx
push edx
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x108], eax
push ecx
push edx
inc eax
push ecx
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10c], esi
call sub.WSOCK32.dll_select
xor ecx, ecx
cmp eax, esi
setge cl
mov eax, ecx
pop esi
leave
ret
Function at 0x424507
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + 0x2120]
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], 1
call sub.WSOCK32.dll_select
cmp eax, 1
jge 0x424555
or eax, 0xffffffff
jmp 0x424561
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call sub.WSOCK32.dll_accept
pop esi
leave
ret

Function at 0x42906e
Capabilities:
Terminate process

Disassembly:
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.bcmath:_out_of_memory__n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x42eb42
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004fba70
push esi
call sym.stub.exe_tsrm_thread_id
push eax
lea eax, [ebp - 0x1000]
push str.T_08x
push eax
call sym.stub.exe_php_sprintf
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push 0x1000
push eax
call sym.stub.exe_ap_php_vsnprintf
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call esi
pop esi
leave
ret

Function at 0x43fd3f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x43fd57
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 4]
push 4
push eax
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
je 0x43fd76
mov eax, dword [eax]
test eax, eax
je 0x43fd76
cmp byte [eax], 0
je 0x43fd76
push eax
jmp 0x43fd79
push dword [ebp + 8]
call sym.stub.exe__estrdup
pop ecx
leave
ret

Function at 0x43ff26
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x43ff59
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x43ff59
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
jmp 0x43ff5c
push dword [ebp + 8]
call sym.stub.exe__estrdup
pop ecx
leave
ret
Function at 0x4492ba
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
call fcn.00448165
pop ecx
test eax, eax
pop ecx
jne 0x4492ea
push dword [esp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4492e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
pop esi
ret

Function at 0x44d616
Capabilities:
Get hostname
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
xor eax, eax
mov al, bh
mov dword [ebp - 4], 0x10
movzx edi, al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
movzx esi, bl
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [ebp + 8]
cmp al, 0x73
jne 0x44d676
cmp ebx, 0x80000000
jae 0x44d66c
mov eax, 0x52cb9c
jmp 0x44d79c
mov eax, str.Windows_9x
jmp 0x44d79c
cmp al, 0x72
jne 0x44d69a
push edi
push esi
push str._d._d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x14
jmp 0x44d796
cmp al, 0x6e
jne 0x44d6a6
lea eax, [ebp - 0x14]
jmp 0x44d79c
cmp al, 0x76
jne 0x44d6cc
shr ebx, 0x10
push ebx
push str.build__d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x10
jmp 0x44d796
cmp al, 0x6d
jne 0x44d740
movzx eax, word [ebp - 0x38]
sub eax, 0
je 0x44d733
dec eax
je 0x44d796
dec eax
je 0x44d727
dec eax
je 0x44d71b
sub eax, 3
je 0x44d711
sub eax, 3
je 0x44d707
dec eax
je 0x44d6fd
mov eax, 0x513ca4
jmp 0x44d79c
mov eax, str.IA32
jmp 0x44d79c
mov eax, str.AMD64
jmp 0x44d79c
mov eax, str.IA64
jmp 0x44d79c
movzx eax, word [ebp - 0x18]
push eax
push str.PPC_6_02d
jmp 0x44d6b3
movzx eax, word [ebp - 0x18]
push eax
push str.Alpha__d
jmp 0x44d6b3
push dword [ebp - 0x20]
push 0x52cb50
jmp 0x44d6b3
cmp ebx, 0x80000000
jae 0x44d772
shr ebx, 0x10
push ebx
push edi
lea eax, [ebp - 0x14]
push esi
push eax
push 0x52cb9c
push str._s__s__d._d_build__d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x20
jmp 0x44d796
push edi
lea eax, [ebp - 0x14]
push esi
push eax
push str.Windows_9x
push str._s__s__d._d
lea eax, [ebp - 0x138]
push 0x100
push eax
call sym.stub.exe_ap_php_snprintf
add esp, 0x1c
lea eax, [ebp - 0x138]
push eax
call sym.stub.exe__estrdup
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452af5
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x45365d
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x5593ec]
push edi
test esi, esi
je 0x45368b
push dword [esi + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x453683
mov esi, dword [esi + 0x20]
jmp 0x453667
inc dword [esi + 0x1c]
jmp 0x4537dc
mov ebp, dword [esp + 0x18]
cmp word [ebp], 0x5a4d
je 0x4536a4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4537c9
mov edi, ebp
add edi, dword [ebp + 0x3c]
cmp dword [edi], 0x4550
jne 0x453697
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4536e3
push 4
push 0x2000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x4536e3
push 8
jmp 0x453699
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x14]
mov esi, eax
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 1
call dword [sym.imp.MSVCRT.dll__strdup]
and dword [esi + 0x14], 0
pop ecx
push 4
push 0x1000
mov dword [esi + 0x18], eax
push dword [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x18], eax
add ecx, dword [ebp + 0x3c]
push ecx
push ebp
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x24]
add eax, ecx
push esi
push edi
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], ebx
call fcn.00453807
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x453780
push eax
push esi
call fcn.00453971
pop ecx
pop ecx
push esi
call fcn.004539eb
test eax, eax
pop ecx
je 0x4537b8
push esi
call fcn.004538b4
mov eax, dword [esi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4537d0
add eax, ebx
test eax, eax
jne 0x4537ab
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4537b8
push 0
push 1
pop edi
push edi
push ebx
call eax
test eax, eax
jne 0x4537cd
push dword [esi + 0x18]
call dword [sym.imp.MSVCRT.dll_free]
push esi
call fcn.00453c12
pop ecx
pop ecx
xor eax, eax
jmp 0x4537de
mov dword [esi + 0x10], edi
push esi
push dword [esp + 0x18]
call fcn.004537e3
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x453807
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4538b1
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x453872
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x45389b
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x45389b
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x453840
pop edi
pop ebx
pop esi
leave
ret
Function at 0x464769
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [0x559408]
mov eax, dword [ecx]
mov eax, dword [eax + edx*4 - 4]
dec dword [eax + 0xbcc]
mov eax, dword [ecx]
mov edx, dword [0x559408]
mov eax, dword [eax + edx*4 - 4]
cmp dword [eax + 0xbcc], 0
jge 0x46479c
push ecx
call fcn.004647d4
pop ecx
ret
mov edx, dword [eax + 0xbc8]
add eax, 0xbc8
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x4647d4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x559408]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
mov eax, dword [eax + ecx*4 - 4]
cmp dword [eax + 0xbcc], 0xffffffff
lea ecx, [eax + 0x20c]
mov dword [ebp - 8], ecx
lea ecx, [eax + 0x838]
lea edi, [eax + 0x204]
mov dword [ebp - 4], ecx
jge 0x46481a
push esi
push 0x1105
call sym.stub.exe_php_mt_srand
pop ecx
pop ecx
mov eax, dword [esi]
mov ecx, dword [0x559408]
mov dword [ebp - 0xc], 0xe3
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0xbcc], 0x26f
mov eax, dword [esi]
mov ecx, dword [0x559408]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [eax + 0x208]
mov dword [eax + 0xbc8], ecx
mov eax, dword [esi]
mov ecx, dword [0x559408]
mov esi, accept
mov eax, dword [eax + ecx*4 - 4]
mov ecx, 0x9908b0df
mov edx, dword [eax + 0x204]
mov eax, dword [eax + 0x208]
mov ebx, eax
xor ebx, edx
and ebx, esi
xor ebx, edx
mov edx, eax
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
mov edx, dword [ebp - 4]
add dword [ebp - 4], 4
xor ebx, dword [edx]
mov edx, eax
mov eax, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [edi], ebx
add edi, 4
dec dword [ebp - 0xc]
mov eax, dword [eax]
jne 0x464871
mov ebx, dword [0x559408]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x18c
mov edx, dword [edx]
mov edx, dword [edx + ebx*4 - 4]
add edx, 0x204
mov dword [ebp - 4], edx
mov edx, eax
mov ebx, eax
xor edx, dword [ebp - 0xc]
and bl, 1
and edx, esi
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr edx, 1
neg bl
sbb ebx, ebx
add dword [ebp - 8], 4
and ebx, ecx
xor edx, ebx
mov ebx, dword [ebp - 4]
xor edx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov dword [edi], edx
mov eax, dword [eax]
add edi, 4
dec dword [ebp - 0x10]
jne 0x4648c8
mov eax, dword [ebp + 8]
mov edx, dword [0x559408]
mov eax, dword [eax]
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax + 0x204]
mov eax, edx
xor eax, dword [ebp - 0xc]
and eax, esi
xor eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp + 8], eax
mov eax, edx
and al, 1
neg al
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
xor ecx, eax
mov eax, edx
shr eax, 0xb
xor edx, eax
xor ecx, dword [ebx]
mov eax, edx
and eax, 0xff3a58ad
mov dword [edi], ecx
shl eax, 7
xor edx, eax
pop edi
mov eax, edx
pop esi
and ax, 0xdf8c
pop ebx
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
leave
ret
Function at 0x46a2b0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x481400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x14]
call fcn.0047f853
xor edi, edi
pop ecx
cmp eax, edi
mov dword [ebp - 8], eax
je 0x481506
push edi
push esi
push eax
movzx eax, word [esi + 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x481506
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x481506
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
shl eax, 2
add edx, ecx
push edi
mov word [ebp - 0x18], 0x4d42
mov word [ebp - 0x12], di
lea edx, [edx + eax + 0xe]
lea eax, [ecx + eax + 0xe]
mov dword [ebp - 0xe], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push 0xe
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x16], edx
mov word [ebp - 0x10], di
call ebx
test eax, eax
je 0x481506
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [esi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push esi
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x481506
mov eax, dword [ebp - 8]
mov esi, dword [esi + 0x14]
mov dword [ebp + 0x10], eax
mov edi, 0x7fff
lea eax, [ebp - 4]
cmp esi, edi
push 0
push eax
jbe 0x4814ec
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x481506
sub esi, edi
add dword [ebp + 0x10], edi
jmp 0x4814ce
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x481506
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x48150a
xor eax, eax
jmp 0x481516
push dword [ebp - 8]
call fcn.0047f869
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x482319
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.0048679f
pop ecx
test eax, eax
pop ecx
jne 0x48233a
xor eax, eax
jmp 0x48245e
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x482333
mov edi, dword [ebp + 0xc]
mov byte [edi], bl
mov eax, dword [esi + 8]
cmp eax, 0xb
je 0x482409
cmp eax, 0x14
je 0x4823d6
cmp eax, 0x1c
je 0x4823c0
cmp eax, 0x20
je 0x48236f
push dword [ebp + 0x10]
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4823b8
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 9
push 0x110a
push dword [esi]
call edi
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x482333
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x110c
push dword [esi]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x482333
cmp byte [eax], bl
je 0x482333
push 1
pop eax
jmp 0x48245e
push ebx
push ebx
push 0x46a
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x10]
push edi
push eax
jmp 0x482367
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jge 0x4823fe
mov eax, dword [esi + 0xc]
cmp eax, ebx
jge 0x4823fe
push ebx
push ebx
push 0x188
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x482333
push dword [ebp + 0xc]
push eax
push 0x189
jmp 0x482450
test byte [esi + 0x14], 0x40
jne 0x48241f
push edi
push dword [ebp + 0x10]
push 0xd
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4823b8
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jge 0x482447
mov eax, dword [esi + 0xc]
cmp eax, ebx
jge 0x482447
push ebx
push ebx
push 0x147
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x482333
push dword [ebp + 0xc]
push eax
push 0x148
push dword [esi]
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484255
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push dword [ebp + 0xc]
call fcn.00486878
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
mov dword [esp], 0x3ff
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x414]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
jne 0x484296
leave
ret
push ebx
push esi
push edi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 8], eax
call edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push 0xf00021
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [ebp - 0x10]
push ebx
call edi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0
push 0x31
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0xc]
push ebx
call edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov ebx, 0x800
push 0
mov eax, dword [eax + 0x14]
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
inc eax
or al, 0x20
push eax
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextExA]
cmp dword [0x54dff0], 0
mov dword [ebp - 8], eax
je 0x4843c8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4843c8
mov eax, dword [eax + 0x14]
and ax, 0x80
cmp al, 0x80
jne 0x4843c8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
test eax, eax
je 0x4843c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
and eax, ebx
cmp eax, ebx
mov ebx, dword [ebp - 0x14]
jne 0x4843a4
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x4843a6
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x10]
push 0
push 0
push dword [ebp + 0x14]
lea ecx, [ecx + edx - 1]
add ebx, eax
push ecx
push ebx
push ecx
push eax
push dword [ebp + 8]
call fcn.00486010
add esp, 0x20
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
push 2
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x486a70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x486a91
mov ebx, dword [0x54e40c]
test ebx, ebx
je 0x486c2f
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call esi
test eax, eax
jne 0x486c31
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x100]
push 0x5359a0
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x100]
push 0x53599c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
mov edi, 0x535998
lea eax, [ebp - 0x100]
push edi
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
lea eax, [ebp - 0x100]
push edi
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x100]
push 0x5359a0
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
lea eax, [ebp - 0x100]
push edi
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x100]
push 0x53599c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
and dword [ebp + 8], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
push str._s__d
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
add dword [ebp + 8], 4
cmp dword [ebp + 8], 0x50
jle 0x486bce
and dword [ebp + 8], eax
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
push str.__s__d
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
jne 0x486c31
add dword [ebp + 8], 4
cmp dword [ebp + 8], 0x50
jle 0x486c00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret